diff options
author | Hollis Blanchard <hollisb@us.ibm.com> | 2008-01-28 17:42:34 -0600 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-04-27 11:53:18 +0300 |
commit | 31bb117eb48f2629e030ca547ca89a1c34150183 (patch) | |
tree | 9923c209e353dfac4843ae067eaade9f3154ced3 /include/linux/kvm_host.h | |
parent | 2384d2b32640839a4d4d260ca7c5aa4edbf68d91 (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/kvm_host.h')
-rw-r--r-- | include/linux/kvm_host.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 928b0d59e9b..b90ca368dcf 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, struct kvm_vcpu { struct kvm *kvm; +#ifdef CONFIG_PREEMPT_NOTIFIERS struct preempt_notifier preempt_notifier; +#endif int vcpu_id; struct mutex mutex; int cpu; |