From: David Daney Date: Wed, 19 May 2010 17:40:53 +0000 (-0700) Subject: MIPS: Don't overflow cevt-r4k.c calculations at high clock rates. X-Git-Tag: v2.6.36-rc1~563^2~146 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d2b11252b92c6aca9f9222ee05e00f7262c2e53;p=pandora-kernel.git 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: David Daney Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/1253/ Acked-by: Thomas Gleixner Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed