diff options
Diffstat (limited to 'arch/arm/mach-exynos4/platsmp.c')
-rw-r--r-- | arch/arm/mach-exynos4/platsmp.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/arm/mach-exynos4/platsmp.c b/arch/arm/mach-exynos4/platsmp.c index df6ef1b2f98b..0c90896ad9a0 100644 --- a/arch/arm/mach-exynos4/platsmp.c +++ b/arch/arm/mach-exynos4/platsmp.c | |||
@@ -193,12 +193,10 @@ void __init smp_init_cpus(void) | |||
193 | ncores = scu_base ? scu_get_core_count(scu_base) : 1; | 193 | ncores = scu_base ? scu_get_core_count(scu_base) : 1; |
194 | 194 | ||
195 | /* sanity check */ | 195 | /* sanity check */ |
196 | if (ncores > NR_CPUS) { | 196 | if (ncores > nr_cpu_ids) { |
197 | printk(KERN_WARNING | 197 | pr_warn("SMP: %u cores greater than maximum (%u), clipping\n", |
198 | "EXYNOS4: no. of cores (%d) greater than configured " | 198 | ncores, nr_cpu_ids); |
199 | "maximum of %d - clipping\n", | 199 | ncores = nr_cpu_ids; |
200 | ncores, NR_CPUS); | ||
201 | ncores = NR_CPUS; | ||
202 | } | 200 | } |
203 | 201 | ||
204 | for (i = 0; i < ncores; i++) | 202 | for (i = 0; i < ncores; i++) |