diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2008-04-19 10:55:15 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-26 11:35:47 -0400 |
commit | d454157b113718a92ba5accc03cee64c7e081483 (patch) | |
tree | 36b4d1de4713510e6cfdc66feec33bece135c76e /arch/x86/kernel | |
parent | b1fceac2b9e04d278316b2faddf276015fc06e3b (diff) |
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/x86/kernel')
-rw-r--r-- | arch/x86/kernel/i8253.c | 3 |
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) | |||
224 | pit_clockevent.mode != CLOCK_EVT_MODE_PERIODIC) | 224 | pit_clockevent.mode != CLOCK_EVT_MODE_PERIODIC) |
225 | return 0; | 225 | return 0; |
226 | 226 | ||
227 | clocksource_pit.mult = clocksource_hz2mult(CLOCK_TICK_RATE, 20); | 227 | clocksource_pit.mult = clocksource_hz2mult(CLOCK_TICK_RATE, |
228 | clocksource_pit.shift); | ||
228 | return clocksource_register(&clocksource_pit); | 229 | return clocksource_register(&clocksource_pit); |
229 | } | 230 | } |
230 | arch_initcall(init_pit_clocksource); | 231 | arch_initcall(init_pit_clocksource); |