]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 26 Feb 2016 02:29:06 +0000 (18:29 -0800)
commit04f6a01295236f893fb503ff203dacaab097dadb
tree2c6c58c6fe78ec0f8494d50686f0e96ec894f525
parent32cfb9bfa5d765059e8a5ffa9f0ec829f7583130
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>
(cherry picked from commit ca9357bd26c2f8e7b909321eedd651f52cc30d04)

Orabug: 21886720
Signed-off-by: Jason Luo <zhangqing.luo@oracle.com>
arch/x86/include/uapi/asm/hyperv.h
drivers/hv/hv.c
drivers/hv/hyperv_vmbus.h