Gitweb:
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=508a775a3c9c6c3f952338f6722ea8bc92899962
Commit: 508a775a3c9c6c3f952338f6722ea8bc92899962
Parent: 55b70a0300b873c0ec7ea6e33752af56f41250ce
Author: Atsushi Nemoto <[EMAIL PROTECTED]>
AuthorDate: Sat Oct 20 00:28:33 2007 +0900
Committer: Ralf Baechle <[EMAIL PROTECTED]>
CommitDate: Mon Oct 22 22:09:00 2007 +0100
[MIPS] time: Fix calculation in clockevent_set_clock()
Signed-off-by: Atsushi Nemoto <[EMAIL PROTECTED]>
Signed-off-by: Ralf Baechle <[EMAIL PROTECTED]>
---
arch/mips/kernel/time.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/mips/kernel/time.c b/arch/mips/kernel/time.c
index c4e6866..6c6849a 100644
--- 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;
}
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html