mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 21:33:00 +00:00
7fa22bd546
If an ARM system has multiple cpus in the same socket and the kernel is booted with maxcpus=1, secondary cpus are possible but not present due to how platform_smp_prepare_cpus() is called. Since most typical ARM processors don't actually support physical hotplug, initialize the present map to be equal to the possible map in generic ARM SMP code. Also, always call platform_smp_prepare_cpus() as long as max_cpus is non-zero (0 means no SMP) to allow platform code to do any SMP setup. After applying this patch it's possible to boot an ARM system with maxcpus=1 on the command line and then hotplug in secondary cpus via sysfs. This is more in line with how x86 does things. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Cc: Paul Mundt <lethal@linux-sh.org> Cc: Kukjin Kim <kgene.kim@samsung.com> Cc: David Brown <davidb@codeaurora.org> Cc: Tony Lindgren <tony@atomide.com> Cc: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com> Cc: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> |
||
---|---|---|
.. | ||
include/mach | ||
board-ag5evm.c | ||
board-ap4evb.c | ||
board-g3evm.c | ||
board-g4evm.c | ||
board-mackerel.c | ||
clock-sh73a0.c | ||
clock-sh7367.c | ||
clock-sh7372.c | ||
clock-sh7377.c | ||
clock.c | ||
console.c | ||
cpuidle.c | ||
entry-gic.S | ||
entry-intc.S | ||
headsmp.S | ||
hotplug.c | ||
intc-sh73a0.c | ||
intc-sh7367.c | ||
intc-sh7372.c | ||
intc-sh7377.c | ||
Kconfig | ||
localtimer.c | ||
Makefile | ||
Makefile.boot | ||
pfc-sh73a0.c | ||
pfc-sh7367.c | ||
pfc-sh7372.c | ||
pfc-sh7377.c | ||
platsmp.c | ||
pm_runtime.c | ||
pm-sh7372.c | ||
setup-sh73a0.c | ||
setup-sh7367.c | ||
setup-sh7372.c | ||
setup-sh7377.c | ||
sleep-sh7372.S | ||
smp-sh73a0.c | ||
suspend.c | ||
timer.c |