projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55b70a0
)
[MIPS] time: Fix calculation in clockevent_set_clock()
author
Atsushi Nemoto
<anemo@mba.ocn.ne.jp>
Fri, 19 Oct 2007 15:28:33 +0000
(
00:28
+0900)
committer
Ralf Baechle
<ralf@linux-mips.org>
Mon, 22 Oct 2007 21:09:00 +0000
(22:09 +0100)
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/time.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/mips/kernel/time.c
b/arch/mips/kernel/time.c
index c4e6866d5cbcce89f0a932577360698f6def6fae..6c6849a8f136988baed2d30a2f5e5eac5fd0bbc1 100644
(file)
--- a/
arch/mips/kernel/time.c
+++ b/
arch/mips/kernel/time.c
@@
-195,8
+195,8
@@
void __cpuinit clockevent_set_clock(struct clock_event_device *cd,
/* Find a shift value */
for (shift = 32; shift > 0; shift--) {
- temp = (u64)
NSEC_PER_SEC
<< shift;
- do_div(temp,
clock
);
+ temp = (u64)
clock
<< shift;
+ do_div(temp,
NSEC_PER_SEC
);
if ((temp >> 32) == 0)
break;
}