From: Akinobu Mita Date: Sat, 19 Apr 2008 14:55:15 +0000 (+0900) Subject: x86: cleanup clocksource_hz2mult usage X-Git-Tag: v2.6.26-rc1~1045^2~11 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=d454157b113718a92ba5accc03cee64c7e081483;p=linux-2.6-omap-h63xx.git x86: cleanup clocksource_hz2mult usage Remove the magic number in the second argument of clocksource_hz2mult() Signed-off-by: Akinobu Mita Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/kernel/i8253.c b/arch/x86/kernel/i8253.c index 8540abe86ad..e325cfe0640 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);