x86: cleanup div_sc() usage
[linux-3.10.git] / arch / x86 / kernel / hpet.c
index 36652ea1a2658d10d729647e0f613c01ccc88ee6..9007f9ea64eed80e9537be44d391fe55d6f7f749 100644 (file)
@@ -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);