Stephen Boyd
69425ffb7f
ARM: 6993/1: platsmp: Allow secondary cpu hotplug with maxcpus=1
...
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.
Change-Id: Ie97366fe3236670ec9c3cb3b77ab8f7ee4a39fd3
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 >
[stepanm@codeaurora.org: resolved trivial merge conflict]
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
2012-01-17 15:31:24 -08:00
..
2011-12-23 18:05:10 -07:00
2011-05-31 06:17:01 -07:00
2011-07-24 21:31:53 +02:00
2011-03-17 19:28:15 -07:00
2011-07-24 21:32:07 +02:00
2011-05-12 02:52:06 -07:00
2011-05-26 12:11:54 -07:00
2011-05-31 06:17:01 -07:00
2011-07-24 21:31:53 +02:00
2011-06-01 02:25:05 -07:00
2011-07-24 21:31:53 +02:00
2011-02-25 10:19:21 -08:00
2011-02-17 15:32:52 -08:00
2011-02-25 10:19:21 -08:00
2011-03-10 09:51:29 -08:00
2011-07-24 21:31:53 +02:00
2011-07-24 21:31:52 +02:00
2011-05-12 02:52:06 -07:00
2011-07-24 21:31:53 +02:00
2011-07-24 21:31:53 +02:00
2011-05-03 02:51:45 -07:00
2011-07-24 21:31:53 +02:00
2011-07-24 21:31:53 +02:00
2011-07-24 21:31:53 +02:00
2011-07-24 21:31:52 +02:00
2011-07-24 21:31:53 +02:00
2011-07-24 21:31:52 +02:00
2011-07-24 21:31:53 +02:00
2011-05-26 12:11:54 -07:00
2011-05-20 17:15:53 +02:00
2011-02-25 10:19:21 -08:00
2011-05-12 02:52:06 -07:00
2011-05-31 06:17:02 -07:00
2011-07-24 21:31:53 +02:00
2011-03-17 19:28:15 -07:00
2011-03-07 20:02:13 -07:00
2011-03-07 20:02:05 -07:00
2010-12-21 21:05:14 -07:00
2011-03-07 20:02:21 -07:00
2010-12-21 20:01:55 -07:00
2010-12-21 21:05:14 -07:00
2011-05-13 07:08:18 -07:00
2011-02-16 17:49:35 -08:00
Merge remote branches 'remotes/origin/pwrdm_clkdm_b_2.6.39', 'remotes/origin/pwrdm_add_can_lose_context_fns_2.6.39', 'remotes/origin/omap_device_a_2.6.39', 'remotes/origin/mmc_a_2.6.39', 'remotes/origin/hwmod_b_2.6.39', 'remotes/origin/dmtimer_a_2.6.39', 'remotes/origin/pwrdm_clkdm_a_2.6.39', 'remotes/origin/clkdm_statdep_omap4_2.6.39', 'remotes/origin/clk_a_2.6.39', 'remotes/origin/clk_autoidle_a_2.6.39', 'remotes/origin/clk_autoidle_b_2.6.39', 'remotes/origin/clk_b_2.6.39', 'remotes/origin/clk_clkdm_a_2.6.39', 'remotes/origin/misc_a_2.6.39', 'remotes/origin/for_2.6.39/omap3_hwmod_data' and 'remotes/origin/wdtimer_a_2.6.39' into tmp-integration-2.6.39-20110310-024
2011-03-10 22:41:28 -07:00
2011-03-07 20:03:12 -07:00
2010-02-24 17:45:15 -07:00
2011-03-09 18:44:28 -07:00
2011-03-22 14:27:36 +09:00
2011-02-25 16:10:42 -07:00
2010-02-24 12:16:15 -07:00
2011-03-07 20:04:03 -07:00
2011-03-07 20:04:03 -07:00
2010-02-24 12:16:15 -07:00
2010-02-24 12:16:15 -07:00
2011-04-20 12:43:56 -06:00
2010-02-24 12:16:15 -07:00
2011-03-22 14:27:36 +09:00
2011-03-22 14:27:36 +09:00
2010-12-21 20:01:55 -07:00
2011-03-07 20:04:03 -07:00
2010-02-24 12:16:15 -07:00
2011-03-07 20:21:17 -07:00
2011-03-11 07:21:44 -08:00
2011-03-07 20:21:17 -07:00
2011-02-25 16:06:48 -07:00
2011-02-25 16:09:05 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-07 20:21:17 -07:00
Merge remote branches 'remotes/origin/pwrdm_clkdm_b_2.6.39', 'remotes/origin/pwrdm_add_can_lose_context_fns_2.6.39', 'remotes/origin/omap_device_a_2.6.39', 'remotes/origin/mmc_a_2.6.39', 'remotes/origin/hwmod_b_2.6.39', 'remotes/origin/dmtimer_a_2.6.39', 'remotes/origin/pwrdm_clkdm_a_2.6.39', 'remotes/origin/clkdm_statdep_omap4_2.6.39', 'remotes/origin/clk_a_2.6.39', 'remotes/origin/clk_autoidle_a_2.6.39', 'remotes/origin/clk_autoidle_b_2.6.39', 'remotes/origin/clk_b_2.6.39', 'remotes/origin/clk_clkdm_a_2.6.39', 'remotes/origin/misc_a_2.6.39', 'remotes/origin/for_2.6.39/omap3_hwmod_data' and 'remotes/origin/wdtimer_a_2.6.39' into tmp-integration-2.6.39-20110310-024
2011-03-10 22:41:28 -07:00
2010-12-21 21:05:15 -07:00
2010-12-21 21:05:15 -07:00
2011-04-20 12:43:56 -06:00
2011-03-07 20:02:13 -07:00
2010-12-21 21:05:14 -07:00
2011-02-25 16:09:05 -07:00
2011-03-07 20:02:57 -07:00
2010-12-21 21:05:15 -07:00
2010-12-21 20:01:55 -07:00
2010-12-21 20:01:55 -07:00
2011-02-25 16:09:05 -07:00
2011-02-25 16:09:05 -07:00
2011-07-24 21:31:52 +02:00
2011-07-24 21:31:52 +02:00
2011-03-10 18:54:14 -08:00
2011-04-20 12:43:56 -06:00
2011-05-10 10:16:21 +02:00
2011-05-20 17:15:54 +02:00
2011-07-24 21:31:57 +02:00
2011-03-22 04:53:42 -03:00
2011-05-11 14:20:11 +03:00
2011-03-31 11:26:23 -03:00
2011-01-06 19:13:58 -08:00
2011-02-25 16:10:17 -07:00
2010-12-21 21:05:14 -07:00
2011-03-31 11:26:23 -03:00
2011-02-17 15:32:52 -08:00
2011-02-17 15:44:46 -08:00
2011-05-12 02:52:06 -07:00
2011-05-12 02:52:06 -07:00
2011-03-29 14:47:57 +02:00
2011-06-01 04:48:15 -07:00
2011-06-01 02:25:04 -07:00
2011-02-17 09:52:43 -08:00
2010-07-05 16:31:40 +03:00
2011-03-14 11:12:54 -07:00
Merge remote branches 'remotes/origin/pwrdm_clkdm_b_2.6.39', 'remotes/origin/pwrdm_add_can_lose_context_fns_2.6.39', 'remotes/origin/omap_device_a_2.6.39', 'remotes/origin/mmc_a_2.6.39', 'remotes/origin/hwmod_b_2.6.39', 'remotes/origin/dmtimer_a_2.6.39', 'remotes/origin/pwrdm_clkdm_a_2.6.39', 'remotes/origin/clkdm_statdep_omap4_2.6.39', 'remotes/origin/clk_a_2.6.39', 'remotes/origin/clk_autoidle_a_2.6.39', 'remotes/origin/clk_autoidle_b_2.6.39', 'remotes/origin/clk_b_2.6.39', 'remotes/origin/clk_clkdm_a_2.6.39', 'remotes/origin/misc_a_2.6.39', 'remotes/origin/for_2.6.39/omap3_hwmod_data' and 'remotes/origin/wdtimer_a_2.6.39' into tmp-integration-2.6.39-20110310-024
2011-03-10 22:41:28 -07:00
2010-10-08 10:12:38 -07:00
2011-02-24 14:23:17 -08:00
2011-05-16 02:28:58 -07:00
2011-05-17 03:31:24 -07:00
2011-03-10 18:54:14 -08:00
2011-07-24 21:31:52 +02:00
2011-03-31 11:26:23 -03:00
2011-01-06 19:58:28 -08:00
2011-06-01 02:25:04 -07:00
2010-11-17 12:01:52 +01:00
2010-11-17 12:01:54 +01:00
2010-07-05 16:31:36 +03:00
2010-11-17 12:01:54 +01:00
2011-03-31 11:26:23 -03:00
2011-06-01 02:25:04 -07:00
2011-06-01 02:25:04 -07:00
2011-03-09 00:18:47 +00:00
2011-03-09 16:38:36 -08:00
2011-04-20 12:43:56 -06:00
2011-07-24 21:31:57 +02:00
2011-04-20 12:43:56 -06:00
2011-04-20 12:43:56 -06:00
2010-07-26 16:34:31 -06:00
2010-07-26 16:34:31 -06:00
2011-06-01 00:16:04 -07:00
2011-05-03 02:38:01 -07:00
2011-03-09 17:23:58 +05:30
2011-05-17 03:44:50 -07:00
2011-03-09 17:23:57 +05:30
2011-03-10 22:17:45 -07:00
2011-06-01 02:25:04 -07:00
2011-03-31 11:26:23 -03:00
2011-03-09 16:38:36 -08:00
2010-12-20 15:09:10 +00:00
2010-12-15 11:33:31 -06:00
2012-01-17 15:31:24 -08:00
2011-01-27 16:39:40 -08:00
2011-03-11 09:39:58 -08:00
2011-03-11 09:39:58 -08:00
2010-12-21 14:30:40 -08:00
2011-03-11 09:20:03 -08:00
2011-05-20 17:15:54 +02:00
2011-05-03 02:38:03 -07:00
2011-06-06 16:14:46 -07:00
2011-04-26 02:45:32 -07:00
2011-05-20 17:15:54 +02:00
2011-01-18 12:36:53 -07:00
2010-12-21 21:05:16 -07:00
2010-12-21 21:05:16 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-07 19:28:15 -07:00
2010-12-21 21:05:16 -07:00
Merge remote branches 'remotes/origin/pwrdm_clkdm_b_2.6.39', 'remotes/origin/pwrdm_add_can_lose_context_fns_2.6.39', 'remotes/origin/omap_device_a_2.6.39', 'remotes/origin/mmc_a_2.6.39', 'remotes/origin/hwmod_b_2.6.39', 'remotes/origin/dmtimer_a_2.6.39', 'remotes/origin/pwrdm_clkdm_a_2.6.39', 'remotes/origin/clkdm_statdep_omap4_2.6.39', 'remotes/origin/clk_a_2.6.39', 'remotes/origin/clk_autoidle_a_2.6.39', 'remotes/origin/clk_autoidle_b_2.6.39', 'remotes/origin/clk_b_2.6.39', 'remotes/origin/clk_clkdm_a_2.6.39', 'remotes/origin/misc_a_2.6.39', 'remotes/origin/for_2.6.39/omap3_hwmod_data' and 'remotes/origin/wdtimer_a_2.6.39' into tmp-integration-2.6.39-20110310-024
2011-03-10 22:41:28 -07:00
2011-03-31 11:26:23 -03:00
2011-03-07 19:28:15 -07:00
2010-12-21 21:05:14 -07:00
2010-12-21 21:05:14 -07:00
2011-03-01 16:36:20 -07:00
2011-03-02 17:11:18 -08:00
2011-01-27 16:39:48 -08:00
2011-03-10 03:23:56 -07:00
2011-03-10 03:23:56 -07:00
2010-12-21 21:05:14 -07:00
2010-12-21 21:05:15 -07:00
2010-12-21 20:01:55 -07:00
2010-12-21 20:01:55 -07:00
2010-12-21 20:01:55 -07:00
2010-12-21 20:01:55 -07:00
2010-12-21 21:05:14 -07:00
2010-12-21 21:05:14 -07:00
2010-12-21 20:01:54 -07:00
2010-12-17 15:13:46 -08:00
2010-12-17 15:13:44 -08:00
2010-12-21 21:05:14 -07:00
2010-12-21 20:01:55 -07:00
2010-12-21 14:45:56 -08:00
2011-02-28 12:04:35 -07:00
2011-02-04 14:26:08 +00:00
2011-03-17 19:28:15 -07:00
2011-03-07 20:05:08 -07:00
2011-05-03 02:38:03 -07:00
2011-03-07 20:05:08 -07:00
2011-03-07 20:05:08 -07:00
2011-03-17 19:28:15 -07:00
2011-02-04 14:26:08 +00:00
2011-02-04 14:26:08 +00:00
2011-03-02 17:07:14 -08:00
2010-10-08 10:02:49 -07:00
2011-02-23 17:54:55 +00:00
2011-07-24 21:31:53 +02:00
2011-07-24 21:31:53 +02:00
2010-10-08 11:40:20 -06:00
2011-03-01 17:02:44 +02:00
2011-05-24 00:04:49 -07:00
2011-05-12 02:52:06 -07:00
2011-03-10 22:17:45 -07:00
2011-03-10 22:17:45 -07:00
2011-03-10 22:17:45 -07:00
2011-05-17 03:44:50 -07:00
2011-03-10 22:17:45 -07:00
2011-03-10 22:17:45 -07:00
2011-03-10 22:17:45 -07:00
2011-03-10 22:17:45 -07:00
2011-03-10 22:17:45 -07:00
2011-03-10 22:17:45 -07:00
2011-01-06 19:58:28 -08:00
2010-12-21 19:56:17 -07:00