@@ -50,14 +50,6 @@ static struct clocksource hyperv_cs = {
.rating = 400, /* use this when running on Hyperv*/
.read = read_hv_clock,
.mask = CLOCKSOURCE_MASK(64),
- /*
- * The time ref counter in HyperV is in 100ns units.
- * The definition of mult is:
- * mult/2^shift = ns/cyc = 100
- * mult = (100 << shift)
- */
- .mult = (100 << HV_CLOCK_SHIFT),
- .shift = HV_CLOCK_SHIFT,
};
static const struct dmi_system_id __initconst
@@ -92,7 +84,7 @@ static int __init init_hv_clocksource(void)
return -ENODEV;
pr_info("Registering HyperV clock source\n");
- return clocksource_register(&hyperv_cs);
+ return clocksource_register_khz(&hyperv_cs, 10000);
}
module_init(init_hv_clocksource);