summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2008-04-19 16:55:15 +0200
committerIngo Molnar <mingo@elte.hu>2008-04-26 17:35:47 +0200
commitd454157b113718a92ba5accc03cee64c7e081483 (patch)
tree36b4d1de4713510e6cfdc66feec33bece135c76e /arch
parentx86: remove unnecessary memset and NULL check after alloc_bootmem() (diff)
downloadlinux-d454157b113718a92ba5accc03cee64c7e081483.tar.xz
linux-d454157b113718a92ba5accc03cee64c7e081483.zip
x86: cleanup clocksource_hz2mult usage
Remove the magic number in the second argument of clocksource_hz2mult() Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kernel/i8253.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/i8253.c b/arch/x86/kernel/i8253.c
index 8540abe86ade..e325cfe06401 100644
--- a/arch/x86/kernel/i8253.c
+++ b/arch/x86/kernel/i8253.c
@@ -224,7 +224,8 @@ static int __init init_pit_clocksource(void)
pit_clockevent.mode != CLOCK_EVT_MODE_PERIODIC)
return 0;
- clocksource_pit.mult = clocksource_hz2mult(CLOCK_TICK_RATE, 20);
+ clocksource_pit.mult = clocksource_hz2mult(CLOCK_TICK_RATE,
+ clocksource_pit.shift);
return clocksource_register(&clocksource_pit);
}
arch_initcall(init_pit_clocksource);