aboutsummaryrefslogtreecommitdiff
path: root/kvm/kernel/external-module-compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'kvm/kernel/external-module-compat.h')
-rw-r--r--kvm/kernel/external-module-compat.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/kvm/kernel/external-module-compat.h b/kvm/kernel/external-module-compat.h
index 4ba4bac9d..dfd90cf9d 100644
--- a/kvm/kernel/external-module-compat.h
+++ b/kvm/kernel/external-module-compat.h
@@ -53,6 +53,17 @@ int kvm_smp_call_function_single(int cpu, void (*func)(void *info),
#endif
+/* on_each_cpu() lost an argument in 2.6.27. */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27)
+
+#define kvm_on_each_cpu(func, info, wait) on_each_cpu(func, info, 0, wait)
+
+#else
+
+#define kvm_on_each_cpu(func, info, wait) on_each_cpu(func, info, wait)
+
+#endif
+
/*
* The cpu hotplug stubs are broken if !CONFIG_CPU_HOTPLUG
*/