diff options
author | Prashant Gaikwad <pgaikwad@nvidia.com> | 2011-12-06 17:27:44 +0530 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2011-12-15 11:52:20 +0530 |
commit | b13cc5ba26bbe26e60ba84c852fa3b1cea8e48f2 (patch) | |
tree | 9b03d39a08f1175be2c8849e44d548fa6b2de1b9 /arch/arm/mach-tegra/cpuidle.c | |
parent | 6992959b717c58e6bd70daa1886ed5d401f8edb2 (diff) |
Revert "ARM: tegra: power: Use peek ahead timers not event notification"
This reverts commit 3f5e640849383b1d5ed551aa84e0a89578519f09.
Change-Id: I5af3fab193204d121a0ea4a939d6e950d2c4a633
Reviewed-on: http://git-master/r/68680
Reviewed-by: Andy Park <andyp@nvidia.com>
Tested-by: Andy Park <andyp@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/cpuidle.c')
-rw-r--r-- | arch/arm/mach-tegra/cpuidle.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/cpuidle.c b/arch/arm/mach-tegra/cpuidle.c index bdf45f81f9da..2ad0fbd6e243 100644 --- a/arch/arm/mach-tegra/cpuidle.c +++ b/arch/arm/mach-tegra/cpuidle.c @@ -108,6 +108,7 @@ static int tegra_idle_enter_lp2(struct cpuidle_device *dev, return tegra_idle_enter_lp3(dev, state); local_irq_disable(); + clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &dev->cpu); enter = ktime_get(); tegra_cpu_idle_stats_lp2_ready(dev->cpu); @@ -116,11 +117,9 @@ static int tegra_idle_enter_lp2(struct cpuidle_device *dev, exit = ktime_sub(ktime_get(), enter); us = ktime_to_us(exit); + clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_EXIT, &dev->cpu); local_irq_enable(); - /* cpu clockevents may have been reset by powerdown */ - hrtimer_peek_ahead_timers(); - smp_rmb(); /* Update LP2 latency provided no fall back to LP3 */ |