diff options
author | Joseph Lo <josephl@nvidia.com> | 2013-01-04 13:32:22 +0400 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2013-01-28 22:14:06 +0400 |
commit | 9e32366fe51fea464adb21c244f372d55207e13c (patch) | |
tree | 2afe44644ee7d424bab09d1d30d640d42eb84e02 /arch/arm/mach-tegra/platsmp.c | |
parent | 8c627fa6583a4894189a47a0bf868f7848b51748 (diff) | |
download | linux-9e32366fe51fea464adb21c244f372d55207e13c.tar.xz |
ARM: tegra: make device can run on UP
The reset handler code is used for either UP or SMP. To make Tegra device
can compile for UP. It needs to be moved to another file that is not SMP
only. This is because the reset handler also be needed by CPU idle
"powered-down" mode. So we also need to put the reset handler init function
in non-SMP only and init them always.
And currently the implementation of the reset handler to know which CPU is
OK to bring up was identital with "cpu_present_mask". But the
"cpu_present_mask" did not initialize yet when the reset handler init
function was moved to init early function. We use the "cpu_possible_mask"
to replace "cpu_present_mask". Then it can work on both UP and SMP case.
Signed-off-by: Joseph Lo <josephl@nvidia.com>
[swarren: dropped the move of v7_invalidate_l1() from one file to another,
to avoid conflicts with Pavel's cleanup of this function, adjust Makefile
so each line only contains 1 file.]
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/platsmp.c')
-rw-r--r-- | arch/arm/mach-tegra/platsmp.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/platsmp.c b/arch/arm/mach-tegra/platsmp.c index 5882da0f4d8a..60daf9f945cb 100644 --- a/arch/arm/mach-tegra/platsmp.c +++ b/arch/arm/mach-tegra/platsmp.c @@ -202,7 +202,6 @@ static void __init tegra_smp_prepare_cpus(unsigned int max_cpus) /* Always mark the boot CPU (CPU0) as initialized. */ cpumask_set_cpu(0, &tegra_cpu_init_mask); - tegra_cpu_reset_handler_init(); scu_enable(scu_base); } |