From f67bfc209f4700ea3877236496d55451714c213f Mon Sep 17 00:00:00 2001 From: Mike Travis Date: Fri, 18 Jul 2008 18:11:30 -0700 Subject: [PATCH] --- yaml --- r: 105229 b: refs/heads/master c: 1bd9d6b64e1474f1a03f8660e8721d746cffae57 h: refs/heads/master i: 105227: 1ff128657399580bc8caf0262eb6951b9ff5bc4f v: v3 --- [refs] | 2 +- trunk/arch/x86/kernel/genapic_flat_64.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 840603ba5ef4..94731d2531bf 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 247bc6ca0f691e4617e7bdb70cbaccc939f754ec +refs/heads/master: 1bd9d6b64e1474f1a03f8660e8721d746cffae57 diff --git a/trunk/arch/x86/kernel/genapic_flat_64.c b/trunk/arch/x86/kernel/genapic_flat_64.c index 1a9c68845ee8..786548a62d38 100644 --- a/trunk/arch/x86/kernel/genapic_flat_64.c +++ b/trunk/arch/x86/kernel/genapic_flat_64.c @@ -168,7 +168,7 @@ static unsigned int physflat_cpu_mask_to_apicid(cpumask_t cpumask) * May as well be the first. */ cpu = first_cpu(cpumask); - if ((unsigned)cpu < NR_CPUS) + if ((unsigned)cpu < nr_cpu_ids) return per_cpu(x86_cpu_to_apicid, cpu); else return BAD_APICID;