diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2008-04-19 16:55:16 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-26 17:35:47 +0200 |
commit | 877084fb1cf6167c5441b0a30c3d9ef9b7be0a3a (patch) | |
tree | 59f2f7f9c9d4566af868b7f83d963d915a281b40 /arch/x86/kernel/hpet.c | |
parent | x86: cleanup clocksource_hz2mult usage (diff) | |
download | linux-877084fb1cf6167c5441b0a30c3d9ef9b7be0a3a.tar.xz linux-877084fb1cf6167c5441b0a30c3d9ef9b7be0a3a.zip |
x86: cleanup div_sc() usage
Remove the magic number in the third argment of div_sc().
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/hpet.c')
-rw-r--r-- | arch/x86/kernel/hpet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c index 36652ea1a265..9007f9ea64ee 100644 --- a/arch/x86/kernel/hpet.c +++ b/arch/x86/kernel/hpet.c @@ -218,7 +218,7 @@ static void hpet_legacy_clockevent_register(void) hpet_freq = 1000000000000000ULL; do_div(hpet_freq, hpet_period); hpet_clockevent.mult = div_sc((unsigned long) hpet_freq, - NSEC_PER_SEC, 32); + NSEC_PER_SEC, hpet_clockevent.shift); /* Calculate the min / max delta */ hpet_clockevent.max_delta_ns = clockevent_delta2ns(0x7FFFFFFF, &hpet_clockevent); |