summaryrefslogtreecommitdiffstats
path: root/drivers/hv
diff options
context:
space:
mode:
authorVitaly Kuznetsov <vkuznets@redhat.com>2017-03-03 08:21:40 -0500
committerThomas Gleixner <tglx@linutronix.de>2017-03-11 08:47:28 -0500
commitbd2a9adaadb8defcaf6c284bca7ff41634105f51 (patch)
treeabc0e4ce725a66e7c451b149636e89d14f16c2b0 /drivers/hv
parent434fd6353b4c83938029ca6ea7dfa4fc82d602bd (diff)
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>
Diffstat (limited to 'drivers/hv')
-rw-r--r--drivers/hv/Kconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/hv/Kconfig b/drivers/hv/Kconfig
index 0403b51d20ba..c29cd5387a35 100644
--- a/drivers/hv/Kconfig
+++ b/drivers/hv/Kconfig
@@ -7,6 +7,9 @@ config HYPERV
7 Select this option to run Linux as a Hyper-V client operating 7 Select this option to run Linux as a Hyper-V client operating
8 system. 8 system.
9 9
10config HYPERV_TSCPAGE
11 def_bool HYPERV && X86_64
12
10config HYPERV_UTILS 13config HYPERV_UTILS
11 tristate "Microsoft Hyper-V Utilities driver" 14 tristate "Microsoft Hyper-V Utilities driver"
12 depends on HYPERV && CONNECTOR && NLS 15 depends on HYPERV && CONNECTOR && NLS