|
@@ -114,10 +114,10 @@ void __init smp_init_cpus(void)
|
|
{
|
|
{
|
|
unsigned int i, ncores = scu_get_core_count(scu_base);
|
|
unsigned int i, ncores = scu_get_core_count(scu_base);
|
|
|
|
|
|
- if (ncores > NR_CPUS) {
|
|
|
|
- printk(KERN_ERR "Tegra: no. of cores (%u) greater than configured (%u), clipping\n",
|
|
|
|
- ncores, NR_CPUS);
|
|
|
|
- ncores = NR_CPUS;
|
|
|
|
|
|
+ if (ncores > nr_cpu_ids) {
|
|
|
|
+ pr_warn("SMP: %u cores greater than maximum (%u), clipping\n",
|
|
|
|
+ ncores, nr_cpu_ids);
|
|
|
|
+ ncores = nr_cpu_ids;
|
|
}
|
|
}
|
|
|
|
|
|
for (i = 0; i < ncores; i++)
|
|
for (i = 0; i < ncores; i++)
|