aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/cpuidle-tegra30.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-tegra/cpuidle-tegra30.c')
-rw-r--r--arch/arm/mach-tegra/cpuidle-tegra30.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/mach-tegra/cpuidle-tegra30.c b/arch/arm/mach-tegra/cpuidle-tegra30.c
index 9387daeeadc8..3cf9aca5f3ea 100644
--- a/arch/arm/mach-tegra/cpuidle-tegra30.c
+++ b/arch/arm/mach-tegra/cpuidle-tegra30.c
@@ -69,10 +69,6 @@ static bool tegra30_cpu_cluster_power_down(struct cpuidle_device *dev,
69 struct cpuidle_driver *drv, 69 struct cpuidle_driver *drv,
70 int index) 70 int index)
71{ 71{
72 struct cpuidle_state *state = &drv->states[index];
73 u32 cpu_on_time = state->exit_latency;
74 u32 cpu_off_time = state->target_residency - state->exit_latency;
75
76 /* All CPUs entering LP2 is not working. 72 /* All CPUs entering LP2 is not working.
77 * Don't let CPU0 enter LP2 when any secondary CPU is online. 73 * Don't let CPU0 enter LP2 when any secondary CPU is online.
78 */ 74 */
@@ -83,7 +79,7 @@ static bool tegra30_cpu_cluster_power_down(struct cpuidle_device *dev,
83 79
84 clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &dev->cpu); 80 clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &dev->cpu);
85 81
86 tegra_idle_lp2_last(cpu_on_time, cpu_off_time); 82 tegra_idle_lp2_last();
87 83
88 clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_EXIT, &dev->cpu); 84 clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_EXIT, &dev->cpu);
89 85