aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorHollis Blanchard <hollisb@us.ibm.com>2008-01-28 18:42:34 -0500
committerAvi Kivity <avi@qumranet.com>2008-04-27 04:53:18 -0400
commit31bb117eb48f2629e030ca547ca89a1c34150183 (patch)
tree9923c209e353dfac4843ae067eaade9f3154ced3 /include/linux
parent2384d2b32640839a4d4d260ca7c5aa4edbf68d91 (diff)
KVM: Use CONFIG_PREEMPT_NOTIFIERS around struct preempt_notifier
This allows kvm_host.h to be #included even when struct preempt_notifier is undefined. This is needed to build ppc asm-offsets.h. Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/kvm_host.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 928b0d59e9ba..b90ca368dcf6 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -67,7 +67,9 @@ void kvm_io_bus_register_dev(struct kvm_io_bus *bus,
67 67
68struct kvm_vcpu { 68struct kvm_vcpu {
69 struct kvm *kvm; 69 struct kvm *kvm;
70#ifdef CONFIG_PREEMPT_NOTIFIERS
70 struct preempt_notifier preempt_notifier; 71 struct preempt_notifier preempt_notifier;
72#endif
71 int vcpu_id; 73 int vcpu_id;
72 struct mutex mutex; 74 struct mutex mutex;
73 int cpu; 75 int cpu;