Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • X xcap-capability-linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • xcap
  • xcap-capability-linux
  • Repository
Switch branch/tag
  • xcap-capability-linux
  • arch
  • mips
  • kernel
  • cevt-r4k.c
Find file BlameHistoryPermalink
  • David Daney's avatar
    MIPS: Don't overflow cevt-r4k.c calculations at high clock rates. · 4d2b1125
    David Daney authored May 19, 2010
    
    
    The 'mult' element of struct clock_event_device must never be wider
    than 32-bits.  If it were, it would get truncated when used by
    clockevent_delta2ns() when this calls do_div().
    
    We can meet this requirement by using clockevent_set_clock() to set
    the MULT and SHIFT values.
    Signed-off-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/1253/
    
    Acked-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
    4d2b1125