Merge branch 'topic/cleanup' into for-linus
[pandora-kernel.git] / arch / mips / nxp / pnx8550 / common / time.c
index 8df43e9..18b1927 100644 (file)
@@ -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();