diff options
author | Arnd Bergmann <arnd@arndb.de> | 2011-10-31 14:23:44 +0100 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2011-10-31 14:23:44 +0100 |
commit | 94314a40bcc537c396012e37cf887572f0d82aef (patch) | |
tree | 489b42e181317730713f8800ac2889039b0faae3 /arch/arm/mach-shmobile/platsmp.c | |
parent | 929f58aeeb46f964d9468ce1addd993f5d92b11d (diff) | |
parent | f37a53cc5d8a8fb199e41386d125d8c2ed9e54ef (diff) | |
download | talos-obmc-linux-94314a40bcc537c396012e37cf887572f0d82aef.tar.gz talos-obmc-linux-94314a40bcc537c396012e37cf887572f0d82aef.zip |
Merge branch 'dt/gic' into imx/imx6q
Diffstat (limited to 'arch/arm/mach-shmobile/platsmp.c')
-rw-r--r-- | arch/arm/mach-shmobile/platsmp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/platsmp.c b/arch/arm/mach-shmobile/platsmp.c index 66f980625a33..e4e485fa2532 100644 --- a/arch/arm/mach-shmobile/platsmp.c +++ b/arch/arm/mach-shmobile/platsmp.c @@ -56,6 +56,12 @@ void __init smp_init_cpus(void) unsigned int ncores = shmobile_smp_get_core_count(); unsigned int i; + 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++) set_cpu_possible(i, true); |