diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2009-05-21 17:09:00 -0700 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2009-05-28 19:37:45 -0300 |
commit | 3dd44f3c8ed8ef189c9f6f132580abf634f2fa34 (patch) | |
tree | 25e0970b4568f13c6f8f7c86b2be928e5aea3666 /kernel | |
parent | fbd6caa5ca21fc94c2dbaceaf0dda99f07d2544f (diff) |
nr_cpu_ids compat
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
(cherry picked from commit kvm-kmod: 72c121a11c4cbd8f5abf6741f2e09fdb2e809011)
Signed-off-by: Chris Wright <chrisw@redhat.com>
Bugzilla: 498085
Message-Id: <1242950943-30180-23-git-send-email-chrisw@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
RH-Upstream-status: applied
Acked-by: Juan Quintela <quintela@redhat.com>
Acked-by: Marcelo Tosatti <mtosatti@redhat.com>
Acked-by: Don Dutile <ddutile@redhat.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/external-module-compat-comm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/external-module-compat-comm.h b/kernel/external-module-compat-comm.h index 1c986d48..d9605ff3 100644 --- a/kernel/external-module-compat-comm.h +++ b/kernel/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 |