ARM: tegra20: cpuidle: add powered-down state for secondary CPU
authorJoseph Lo <josephl@nvidia.com>
Tue, 15 Jan 2013 22:10:38 +0000 (22:10 +0000)
committerStephen Warren <swarren@nvidia.com>
Mon, 28 Jan 2013 18:20:38 +0000 (11:20 -0700)
commit5c1350bdfcebf47b3b6f83d62e5860259858a54a
treea44b2ec6cf784e7979a0be813205a1e43d6ec749
parentd4b92fb2535a5b35cab9713d6793f1674cc45ba7
ARM: tegra20: cpuidle: add powered-down state for secondary CPU

The powered-down state of Tegra20 requires power gating both CPU cores.
When the secondary CPU requests to enter powered-down state, it saves
its own contexts and then enters WFI. The Tegra20 had a limition to
power down both CPU cores. The secondary CPU must waits for CPU0 in
powered-down state too. If the secondary CPU be woken up before CPU0
entering powered-down state, then it needs to restore its CPU states
and waits for next chance.

Be aware of that, you may see the legacy power state "LP2" in the code
which is exactly the same meaning of "CPU power down".

Based on the work 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>
arch/arm/mach-tegra/cpuidle-tegra20.c
arch/arm/mach-tegra/pm.c
arch/arm/mach-tegra/sleep-tegra20.S
arch/arm/mach-tegra/sleep.h
This page took 0.025602 seconds and 5 git commands to generate.