diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2013-03-21 08:21:34 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-03-31 19:10:27 -0400 |
commit | d2b578e5fc189d6948eb48bdaf2156f74aecf69c (patch) | |
tree | 38aaa4edb2e140df1ce518125e74c0d2c4baec46 /arch/arm/mach-ux500/cpuidle.c | |
parent | 8de46eff656f028b120971ba0edabaab09d854f2 (diff) |
cpuidle / ux500 : use CPUIDLE_FLAG_TIMER_STOP flag
Use the CPUIDLE_FLAG_TIMER_STOP and let the cpuidle framework
to handle the CLOCK_EVT_NOTIFY_BROADCAST_ENTER/EXIT when entering
this state.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/arm/mach-ux500/cpuidle.c')
-rw-r--r-- | arch/arm/mach-ux500/cpuidle.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/arm/mach-ux500/cpuidle.c b/arch/arm/mach-ux500/cpuidle.c index ce9149302cc3..6d0c4b657a21 100644 --- a/arch/arm/mach-ux500/cpuidle.c +++ b/arch/arm/mach-ux500/cpuidle.c | |||
@@ -30,8 +30,6 @@ static inline int ux500_enter_idle(struct cpuidle_device *dev, | |||
30 | int this_cpu = smp_processor_id(); | 30 | int this_cpu = smp_processor_id(); |
31 | bool recouple = false; | 31 | bool recouple = false; |
32 | 32 | ||
33 | clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_ENTER, &this_cpu); | ||
34 | |||
35 | if (atomic_inc_return(&master) == num_online_cpus()) { | 33 | if (atomic_inc_return(&master) == num_online_cpus()) { |
36 | 34 | ||
37 | /* With this lock, we prevent the other cpu to exit and enter | 35 | /* With this lock, we prevent the other cpu to exit and enter |
@@ -91,8 +89,6 @@ out: | |||
91 | spin_unlock(&master_lock); | 89 | spin_unlock(&master_lock); |
92 | } | 90 | } |
93 | 91 | ||
94 | clockevents_notify(CLOCK_EVT_NOTIFY_BROADCAST_EXIT, &this_cpu); | ||
95 | |||
96 | return index; | 92 | return index; |
97 | } | 93 | } |
98 | 94 | ||
@@ -106,7 +102,8 @@ static struct cpuidle_driver ux500_idle_driver = { | |||
106 | .enter = ux500_enter_idle, | 102 | .enter = ux500_enter_idle, |
107 | .exit_latency = 70, | 103 | .exit_latency = 70, |
108 | .target_residency = 260, | 104 | .target_residency = 260, |
109 | .flags = CPUIDLE_FLAG_TIME_VALID, | 105 | .flags = CPUIDLE_FLAG_TIME_VALID | |
106 | CPUIDLE_FLAG_TIMER_STOP, | ||
110 | .name = "ApIdle", | 107 | .name = "ApIdle", |
111 | .desc = "ARM Retention", | 108 | .desc = "ARM Retention", |
112 | }, | 109 | }, |