Skip to contentSkip to conversation

Use kvm_on_each_cpu in preempt.c

PATCH Applied Alexander Graf 2 participants 2 messages Nov 8, 2008 – Nov 9, 2008 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Use kvm_on_each_cpu in preempt.c

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.

---
 kernel/x86/preempt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/x86/preempt.c +1 -1
index a6b69ec..9e4bd2c 100644
@@ -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;
 }
Signature · 1 line
1.5.3.1
Applied
#1 lore raw
Quoted 9 lines · Alexander Graf

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.

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function