Drivers: hv: vmbus: Implement a clocksource based on the TSC page
authorK. Y. Srinivasan <kys@microsoft.com>
Wed, 5 Aug 2015 07:52:42 +0000 (00:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2015 18:44:29 +0000 (11:44 -0700)
commitca9357bd26c2f8e7b909321eedd651f52cc30d04
treef9417defaed1252c6bc0442285314ee9ca777258
parentbc609cb47fb2e74654e23cef0a1d4db38b6570a3
Drivers: hv: vmbus: Implement a clocksource based on the TSC page

The current Hyper-V clock source is based on the per-partition reference counter
and this counter is being accessed via s synthetic MSR - HV_X64_MSR_TIME_REF_COUNT.
Hyper-V has a more efficient way of computing the per-partition reference
counter value that does not involve reading a synthetic MSR. We implement
a time source based on this mechanism.

Tested-by: Vivek Yadav <vyadav@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/uapi/asm/hyperv.h
drivers/hv/hv.c
drivers/hv/hyperv_vmbus.h