diff options
author | Joseph Lo <josephl@nvidia.com> | 2012-08-16 05:31:52 -0400 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2012-09-13 13:41:06 -0400 |
commit | 453689e407f2b7c0a72a2e6fb2ef84c20475773b (patch) | |
tree | 83b532ff1b43e684ca3e92978c6d806bdc240f5c /arch/arm/mach-tegra/hotplug.c | |
parent | 59b0f6825c15d24859e22b1024440ae2a094983e (diff) |
ARM: tegra20: add CPU hotplug support
Hotplug function put CPU in offline or online mode at runtime.
When the CPU been put into offline, it was been clock gated. The
offline CPU can be power gated, when the remaining CPU goes into
LP2.
Based on the worked by:
Colin Cross <ccross@android.com>
Gary King <gking@nvidia.com>
Signed-off-by: Joseph Lo <josephl@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/hotplug.c')
-rw-r--r-- | arch/arm/mach-tegra/hotplug.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/hotplug.c b/arch/arm/mach-tegra/hotplug.c index be92d4c07606..d02a35476135 100644 --- a/arch/arm/mach-tegra/hotplug.c +++ b/arch/arm/mach-tegra/hotplug.c | |||
@@ -56,6 +56,14 @@ int platform_cpu_disable(unsigned int cpu) | |||
56 | return cpu == 0 ? -EPERM : 0; | 56 | return cpu == 0 ? -EPERM : 0; |
57 | } | 57 | } |
58 | 58 | ||
59 | #ifdef CONFIG_ARCH_TEGRA_2x_SOC | ||
60 | extern void tegra20_hotplug_shutdown(void); | ||
61 | void __init tegra20_hotplug_init(void) | ||
62 | { | ||
63 | tegra_hotplug_shutdown = tegra20_hotplug_shutdown; | ||
64 | } | ||
65 | #endif | ||
66 | |||
59 | #ifdef CONFIG_ARCH_TEGRA_3x_SOC | 67 | #ifdef CONFIG_ARCH_TEGRA_3x_SOC |
60 | extern void tegra30_hotplug_shutdown(void); | 68 | extern void tegra30_hotplug_shutdown(void); |
61 | void __init tegra30_hotplug_init(void) | 69 | void __init tegra30_hotplug_init(void) |