diff options
author | Hollis Blanchard <hollisb@us.ibm.com> | 2008-01-28 23:42:34 (GMT) |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-04-27 08:53:18 (GMT) |
commit | 31bb117eb48f2629e030ca547ca89a1c34150183 (patch) | |
tree | 9923c209e353dfac4843ae067eaade9f3154ced3 /include | |
parent | 2384d2b32640839a4d4d260ca7c5aa4edbf68d91 (diff) | |
download | linux-31bb117eb48f2629e030ca547ca89a1c34150183.tar.xz |
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')
-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 928b0d59..b90ca36 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; |