Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 370615
b: refs/heads/master
c: 4d82d05
h: refs/heads/master
i:
  370613: 54014d1
  370611: 7e1571b
  370607: 42c49fc
v: v3
  • Loading branch information
Joseph Lo authored and Stephen Warren committed Apr 3, 2013
1 parent 6c4b22d commit bec439b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c8c2e6069065fdecfb195a2c438c7faa964aef22
refs/heads/master: 4d82d0587b4a964ea3a7c73aa044b433000527dd
6 changes: 1 addition & 5 deletions trunk/arch/arm/mach-tegra/cpuidle-tegra20.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,6 @@ static bool tegra20_cpu_cluster_power_down(struct cpuidle_device *dev,
struct cpuidle_driver *drv,
int index)
{
struct cpuidle_state *state = &drv->states[index];
u32 cpu_on_time = state->exit_latency;
u32 cpu_off_time = state->target_residency - state->exit_latency;

while (tegra20_cpu_is_resettable_soon())
cpu_relax();

Expand All @@ -142,7 +138,7 @@ static bool tegra20_cpu_cluster_power_down(struct cpuidle_device *dev,

clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &dev->cpu);

tegra_idle_lp2_last(cpu_on_time, cpu_off_time);
tegra_idle_lp2_last();

clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_EXIT, &dev->cpu);

Expand Down
6 changes: 1 addition & 5 deletions trunk/arch/arm/mach-tegra/cpuidle-tegra30.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ static bool tegra30_cpu_cluster_power_down(struct cpuidle_device *dev,
struct cpuidle_driver *drv,
int index)
{
struct cpuidle_state *state = &drv->states[index];
u32 cpu_on_time = state->exit_latency;
u32 cpu_off_time = state->target_residency - state->exit_latency;

/* All CPUs entering LP2 is not working.
* Don't let CPU0 enter LP2 when any secondary CPU is online.
*/
Expand All @@ -86,7 +82,7 @@ static bool tegra30_cpu_cluster_power_down(struct cpuidle_device *dev,

clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &dev->cpu);

tegra_idle_lp2_last(cpu_on_time, cpu_off_time);
tegra_idle_lp2_last();

clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_EXIT, &dev->cpu);

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-tegra/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ static int tegra_sleep_cpu(unsigned long v2p)
return 0;
}

void tegra_idle_lp2_last(u32 cpu_on_time, u32 cpu_off_time)
void tegra_idle_lp2_last(void)
{
tegra_pmc_pm_set(TEGRA_SUSPEND_LP2);

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-tegra/pm.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void restore_cpu_arch_register(void);
void tegra_clear_cpu_in_lp2(int phy_cpu_id);
bool tegra_set_cpu_in_lp2(int phy_cpu_id);

void tegra_idle_lp2_last(u32 cpu_on_time, u32 cpu_off_time);
void tegra_idle_lp2_last(void);
extern void (*tegra_tear_down_cpu)(void);

#ifdef CONFIG_PM_SLEEP
Expand Down

0 comments on commit bec439b

Please sign in to comment.