git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MIPS: Use DIV_ROUND_CLOSEST
[pandora-kernel.git]
/
arch
/
mips
/
nxp
/
pnx8550
/
common
/
time.c
diff --git
a/arch/mips/nxp/pnx8550/common/time.c
b/arch/mips/nxp/pnx8550/common/time.c
index
8df43e9
..
18b1927
100644
(file)
--- 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();