summaryrefslogtreecommitdiff
path: root/arch/x86/hyperv/Makefile
diff options
context:
space:
mode:
authorYi Sun <yi.y.sun@linux.intel.com>2018-10-08 16:29:34 +0800
committerThomas Gleixner <tglx@linutronix.de>2018-10-09 14:21:39 +0200
commit3a025de64bf89c84a79909069e3c24ad9e710d27 (patch)
tree04adc9cf615d5644da69374dbf9d70b4a33cb63d /arch/x86/hyperv/Makefile
parentf726c4620df39055f060537a8ed183c18a2c504b (diff)
x86/hyperv: Enable PV qspinlock for Hyper-V
Implement the required wait and kick callbacks to support PV spinlocks in Hyper-V guests. [ tglx: Document the requirement for disabling interrupts in the wait() callback. Remove goto and unnecessary includes. Add prototype for hv_vcpu_is_preempted(). Adapted to pending paravirt changes. ] Signed-off-by: Yi Sun <yi.y.sun@linux.intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Juergen Gross <jgross@suse.com> Cc: "K. Y. Srinivasan" <kys@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Stephen Hemminger <sthemmin@microsoft.com> Cc: Michael Kelley (EOSG) <Michael.H.Kelley@microsoft.com> Cc: chao.p.peng@intel.com Cc: chao.gao@intel.com Cc: isaku.yamahata@intel.com Cc: tianyu.lan@microsoft.com Link: https://lkml.kernel.org/r/1538987374-51217-3-git-send-email-yi.y.sun@linux.intel.com
Diffstat (limited to 'arch/x86/hyperv/Makefile')
-rw-r--r--arch/x86/hyperv/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/hyperv/Makefile b/arch/x86/hyperv/Makefile
index b21ee65c4101..1c11f9420a82 100644
--- a/arch/x86/hyperv/Makefile
+++ b/arch/x86/hyperv/Makefile
@@ -1,2 +1,6 @@
obj-y := hv_init.o mmu.o nested.o
obj-$(CONFIG_X86_64) += hv_apic.o
+
+ifdef CONFIG_X86_64
+obj-$(CONFIG_PARAVIRT_SPINLOCKS) += hv_spinlock.o
+endif