diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2012-07-18 18:02:53 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-07-18 18:02:53 -0400 |
commit | 3db0bc97678d7de32f25514b290a0ca028dd4512 (patch) | |
tree | 45729aa3a8cecff0e4d4c1d27c2459109ae5a749 /drivers/cpuidle/cpuidle.c | |
parent | d9914cf66181b8aa0929775f5c6f675c6ebc3eb5 (diff) | |
parent | aa713cc3b22ccd24dc55df4e0770490781fe6a76 (diff) |
Merge branch 'pm-cpuidle'
Diffstat (limited to 'drivers/cpuidle/cpuidle.c')
-rw-r--r-- | drivers/cpuidle/cpuidle.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c index d90519cec880..efa9a2ca30e7 100644 --- a/drivers/cpuidle/cpuidle.c +++ b/drivers/cpuidle/cpuidle.c | |||
@@ -201,6 +201,22 @@ void cpuidle_resume_and_unlock(void) | |||
201 | 201 | ||
202 | EXPORT_SYMBOL_GPL(cpuidle_resume_and_unlock); | 202 | EXPORT_SYMBOL_GPL(cpuidle_resume_and_unlock); |
203 | 203 | ||
204 | /* Currently used in suspend/resume path to suspend cpuidle */ | ||
205 | void cpuidle_pause(void) | ||
206 | { | ||
207 | mutex_lock(&cpuidle_lock); | ||
208 | cpuidle_uninstall_idle_handler(); | ||
209 | mutex_unlock(&cpuidle_lock); | ||
210 | } | ||
211 | |||
212 | /* Currently used in suspend/resume path to resume cpuidle */ | ||
213 | void cpuidle_resume(void) | ||
214 | { | ||
215 | mutex_lock(&cpuidle_lock); | ||
216 | cpuidle_install_idle_handler(); | ||
217 | mutex_unlock(&cpuidle_lock); | ||
218 | } | ||
219 | |||
204 | /** | 220 | /** |
205 | * cpuidle_wrap_enter - performs timekeeping and irqen around enter function | 221 | * cpuidle_wrap_enter - performs timekeeping and irqen around enter function |
206 | * @dev: pointer to a valid cpuidle_device object | 222 | * @dev: pointer to a valid cpuidle_device object |
@@ -265,7 +281,6 @@ static void poll_idle_init(struct cpuidle_driver *drv) | |||
265 | state->power_usage = -1; | 281 | state->power_usage = -1; |
266 | state->flags = 0; | 282 | state->flags = 0; |
267 | state->enter = poll_idle; | 283 | state->enter = poll_idle; |
268 | state->disable = 0; | ||
269 | } | 284 | } |
270 | #else | 285 | #else |
271 | static void poll_idle_init(struct cpuidle_driver *drv) {} | 286 | static void poll_idle_init(struct cpuidle_driver *drv) {} |