projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
247bc6c
)
NR_CPUS: Replace NR_CPUS in arch/x86/kernel/genapic_flat_64.c
author
Mike Travis
<travis@sgi.com>
Sat, 19 Jul 2008 01:11:30 +0000
(18:11 -0700)
committer
Ingo Molnar
<mingo@elte.hu>
Sun, 20 Jul 2008 08:21:10 +0000
(10:21 +0200)
* nr_cpu_ids should be used to determine if a percpu area is
available for a given cpu.
Signed-off-by: Mike Travis <travis@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/genapic_flat_64.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/genapic_flat_64.c
b/arch/x86/kernel/genapic_flat_64.c
index
1a9c688
..
786548a
100644
(file)
--- a/
arch/x86/kernel/genapic_flat_64.c
+++ b/
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;