ARM: msm: platsmp: determine number of CPU cores at boot time
commit41ff445cdb8b3d618425f8a16e2b873046bbe536
authorJeff Ohlstein <johlstei@codeaurora.org>
Fri, 8 Apr 2011 00:41:09 +0000 (7 17:41 -0700)
committerArnd Bergmann <arnd@arndb.de>
Thu, 21 Jul 2011 14:43:03 +0000 (21 16:43 +0200)
tree60a660c1f1924b23185f67b21869b964f57e164a
parent620917de59eeb934b9f8cf35cc2d95c1ac8ed0fc
ARM: msm: platsmp: determine number of CPU cores at boot time

Previously we just assumed there were CONFIG_NR_CPUS cpus present in
the system. Instead, figure out the number of cpus from the MIDR
register.

Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
[arnd: clarified patch title]
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-msm/platsmp.c