x86/hyperv: Implement hv_get_tsc_page()
authorVitaly Kuznetsov <vkuznets@redhat.com>
Fri, 3 Mar 2017 13:21:40 +0000 (14:21 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 11 Mar 2017 13:47:28 +0000 (14:47 +0100)
commitbd2a9adaadb8defcaf6c284bca7ff41634105f51
treeabc0e4ce725a66e7c451b149636e89d14f16c2b0
parent434fd6353b4c83938029ca6ea7dfa4fc82d602bd
x86/hyperv: Implement hv_get_tsc_page()

To use Hyper-V TSC page clocksource from vDSO we need to make tsc_pg
available. Implement hv_get_tsc_page() and add CONFIG_HYPERV_TSCPAGE to
make #ifdef-s simple.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Cc: Stephen Hemminger <sthemmin@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Dexuan Cui <decui@microsoft.com>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: devel@linuxdriverproject.org
Cc: "K. Y. Srinivasan" <kys@microsoft.com>
Cc: virtualization@lists.linux-foundation.org
Link: http://lkml.kernel.org/r/20170303132142.25595-2-vkuznets@redhat.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/hyperv/hv_init.c
arch/x86/include/asm/mshyperv.h
drivers/hv/Kconfig