summaryrefslogtreecommitdiff
path: root/arch/mips/nxp/pnx8550/common/time.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-08-09 14:46:45 +0400
committerIngo Molnar <mingo@elte.hu>2009-08-09 14:46:49 +0400
commite3560336be655c6791316482fe288b119f34c427 (patch)
tree43ca9a6b489aaa3918b773f78a7eda37458ef0a8 /arch/mips/nxp/pnx8550/common/time.c
parent26528e773ecc74fb1b61b7275f86f761cbb340ec (diff)
parent7b2aa037e878c939676675969983284a02958ae3 (diff)
downloadlinux-e3560336be655c6791316482fe288b119f34c427.tar.xz
Merge branch 'linus' into tracing/urgent
Merge reason: Merge up to almost-rc6 to pick up latest perfcounters (on which we'll queue up a dependent fix) Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/mips/nxp/pnx8550/common/time.c')
-rw-r--r--arch/mips/nxp/pnx8550/common/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/nxp/pnx8550/common/time.c b/arch/mips/nxp/pnx8550/common/time.c
index 8df43e9e4d90..18b192784877 100644
--- a/arch/mips/nxp/pnx8550/common/time.c
+++ b/arch/mips/nxp/pnx8550/common/time.c
@@ -138,7 +138,7 @@ __init void plat_time_init(void)
* HZ timer interrupts per second.
*/
mips_hpt_frequency = 27UL * ((1000000UL * n)/(m * pow2p));
- cpj = (mips_hpt_frequency + HZ / 2) / HZ;
+ cpj = DIV_ROUND_CLOSEST(mips_hpt_frequency, HZ);
write_c0_count(0);
timer_ack();