projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2384d2b
)
KVM: Use CONFIG_PREEMPT_NOTIFIERS around struct preempt_notifier
author
Hollis Blanchard
<hollisb@us.ibm.com>
Mon, 28 Jan 2008 23:42:34 +0000
(17:42 -0600)
committer
Avi Kivity
<avi@qumranet.com>
Sun, 27 Apr 2008 08:53:18 +0000
(11:53 +0300)
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>
include/linux/kvm_host.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/kvm_host.h
b/include/linux/kvm_host.h
index 928b0d59e9ba07d64686975f5db6022ad608ef8d..b90ca368dcf67659832093184077c6455a32fe20 100644
(file)
--- 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;