Messages in this thread Patch in this message | | | From | y@kernel ... | Subject | [PATCH 8/8] clocksource: hyperv: Convert to clocksource_register_khz | Date | Tue, 25 Oct 2011 11:08:16 -0700 |
| |
From: John Stultz <johnstul@us.ibm.com>
Convert to using clocksource_register_khz
Signed-off-by: John Stultz <johnstul@us.ibm.com> CC: Thomas Gleixner <tglx@linutronix.de> CC: K. Y. Srinivasan <ksrinivasan@novell.com> --- 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
| |