mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 16:12:02 +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-mop500-pins.c | ||
board-mop500-regulators.c | ||
board-mop500-regulators.h | ||
board-mop500-sdi.c | ||
board-mop500-stuib.c | ||
board-mop500-u8500uib.c | ||
board-mop500-uib.c | ||
board-mop500.c | ||
board-mop500.h | ||
board-u5500-sdi.c | ||
board-u5500.c | ||
clock.c | ||
clock.h | ||
cpu-db5500.c | ||
cpu-db8500.c | ||
cpu.c | ||
devices-common.c | ||
devices-common.h | ||
devices-db5500.h | ||
devices-db8500.c | ||
devices-db8500.h | ||
devices.c | ||
dma-db5500.c | ||
headsmp.S | ||
hotplug.c | ||
id.c | ||
Kconfig | ||
localtimer.c | ||
Makefile | ||
Makefile.boot | ||
mbox-db5500.c | ||
modem-irq-db5500.c | ||
pins-db5500.h | ||
pins-db8500.h | ||
platsmp.c | ||
ste-dma40-db5500.h | ||
ste-dma40-db8500.h | ||
usb.c |