Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4d2b1125 authored by David Daney's avatar David Daney Committed by Ralf Baechle
Browse files

MIPS: Don't overflow cevt-r4k.c calculations at high clock rates.



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>
parent 6165df98
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment