Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 3160499aacb81f6735941eb4c372d87a > files > 72

kvm-83-164.el5_5.30.src.rpm

From 3449de7b2791b7257b84faa92aeef33f361aa035 Mon Sep 17 00:00:00 2001
From: Avi Kivity <avi@redhat.com>
Date: Thu, 21 May 2009 17:09:03 -0700
Subject: [PATCH 25/25] Adjust nr_cpu_ids check

nr_cpu_ids was introduced in 2.6.21, not 2.6.28.

Signed-off-by: Avi Kivity <avi@redhat.com>
(cherry picked from commit kvm-kmod: 6fd661219d90ac6f4de69c1175fb9ae47ebe2b0b)
Signed-off-by: Chris Wright <chrisw@redhat.com>
Bugzilla: 498085
Message-Id: <1242950943-30180-26-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>
---
 kernel/external-module-compat-comm.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/external-module-compat-comm.h b/kernel/external-module-compat-comm.h
index 2ad7832..3899535 100644
--- a/kernel/external-module-compat-comm.h
+++ b/kernel/external-module-compat-comm.h
@@ -116,7 +116,7 @@ int kvm_smp_call_function_single(int cpu, void (*func)(void *info),
 
 #endif
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,21)
 #define nr_cpu_ids NR_CPUS
 #endif
 
-- 
1.6.3.rc4.29.g8146