From: Marcelo Tosatti <mtosa...@redhat.com> Signed-off-by: Marcelo Tosatti <mtosa...@redhat.com> Signed-off-by: Avi Kivity <a...@redhat.com>
diff --git a/external-module-compat-comm.h b/external-module-compat-comm.h index 8cb5440..d7fec25 100644 --- a/external-module-compat-comm.h +++ b/external-module-compat-comm.h @@ -116,6 +116,10 @@ int kvm_smp_call_function_single(int cpu, void (*func)(void *info), #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28) +#define nr_cpu_ids NR_CPUS +#endif + #include <linux/miscdevice.h> #ifndef KVM_MINOR #define KVM_MINOR 232 -- To unsubscribe from this list: send the line "unsubscribe kvm-commits" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html