[PATCH 8/8] clocksource: hyperv: Convert to clocksource_register_khz

From: y
Date: Tue Oct 25 2011 - 14:09:22 EST


From: John Stultz <johnstul@xxxxxxxxxx>

Convert to using clocksource_register_khz

Signed-off-by: John Stultz <johnstul@xxxxxxxxxx>
CC: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
CC: K. Y. Srinivasan <ksrinivasan@xxxxxxxxxx>
---
drivers/staging/hv/hv_timesource.c | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)

diff --git a/drivers/staging/hv/hv_timesource.c b/drivers/staging/hv/hv_timesource.c
index 2b0f9aa..0379b2d 100644
--- a/drivers/staging/hv/hv_timesource.c
+++ b/drivers/staging/hv/hv_timesource.c
@@ -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);
--
1.7.3.2.146.gca209

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/