diff options
author | Scott Williams <scwilliams@nvidia.com> | 2011-02-11 14:51:19 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-04-26 15:51:44 -0700 |
commit | 67bdcd4034d91012521a9e12c6a94810dd7174cc (patch) | |
tree | d4b47e06afd229361b19e9aacbad835b4fbd514a /arch/arm/mach-tegra/platsmp.c | |
parent | 097f518aed5c5435cec0ddba117fcdb50d3428d3 (diff) |
arm: tegra: Report all CPUs booted when only 1 CPU present
If only one CPU is present in the CPU complex, make sure that
tegra_all_cpus_booted is set so that LP2 mode can be entered.
Original-Change-Id: I298eb05cc33f5fed799599e0aff3eb26b2a1e960
Reviewed-on: http://git-master/r/19303
Tested-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Change-Id: I6dabf240a58f6587dbbade9523f1368aa8fdd0b9
Diffstat (limited to 'arch/arm/mach-tegra/platsmp.c')
-rw-r--r-- | arch/arm/mach-tegra/platsmp.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/arch/arm/mach-tegra/platsmp.c b/arch/arm/mach-tegra/platsmp.c index 25921d9d9224..4bb3674f23bc 100644 --- a/arch/arm/mach-tegra/platsmp.c +++ b/arch/arm/mach-tegra/platsmp.c @@ -225,6 +225,9 @@ void __init smp_prepare_cpus(unsigned int max_cpus) for (i = 0; i < max_cpus; i++) set_cpu_present(i, true); + if (max_cpus == 1) + tegra_all_cpus_booted = true; + #ifdef CONFIG_HOTPLUG_CPU for_each_present_cpu(i) { init_completion(&per_cpu(cpu_killed, i)); @@ -234,13 +237,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus) CPU present or not. */ percpu_timer_setup(); - /* - * Initialise the SCU if there are more than one CPU and let - * them know where to start. Note that, on modern versions of - * MILO, the "poke" doesn't actually do anything until each - * individual core is sent a soft interrupt to get it out of - * WFI - */ + /* Initialise the SCU if there are more than one CPU. */ if (max_cpus > 1) { scu_enable(scu_base); } |