From 2206b2968aa0eab8e71ce0b246e0de28da8e49b0 Mon Sep 17 00:00:00 2001 From: Julia Lawall Date: Sun, 2 Aug 2009 10:48:08 +0200 Subject: [PATCH] --- yaml --- r: 156408 b: refs/heads/master c: 64f1815507f207ec54ee6b9ae69c48bd153e83b4 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/mips/nxp/pnx8550/common/time.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 63e3b33aa9f5..2def1fc84b9d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a1b021d3992d9be03b0abec1a7ed78e713b94206 +refs/heads/master: 64f1815507f207ec54ee6b9ae69c48bd153e83b4 diff --git a/trunk/arch/mips/nxp/pnx8550/common/time.c b/trunk/arch/mips/nxp/pnx8550/common/time.c index 8df43e9e4d90..18b192784877 100644 --- a/trunk/arch/mips/nxp/pnx8550/common/time.c +++ b/trunk/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();