Compat modules need to use kvm_on_each_cpu instead on on_each_cpu
in order to be compatible throughout various kernel versions.
Unfortunately preempt.c uses on_each_cpu. This patch changes preempt.c
to also use the kvm version, so it is compatible with the rest of the
external module build.
This fixes building on newer kernels without preempt notifiers.
Signed-off-by: Alexander Graf <[EMAIL PROTECTED]>
---
kernel/x86/preempt.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/x86/preempt.c b/kernel/x86/preempt.c
index a6b69ec..9e4bd2c 100644
--- a/kernel/x86/preempt.c
+++ b/kernel/x86/preempt.c
@@ -251,7 +251,7 @@ void preempt_notifier_sys_exit(void)
struct idt_desc idt_desc;
dprintk("\n");
- on_each_cpu(do_disable, NULL, 1, 1);
+ kvm_on_each_cpu(do_disable, NULL, 1);
asm ("sidt %0" : "=m"(idt_desc));
idt_desc.gates[1] = orig_int1_gate;
}
--
1.5.3.1
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html