diff options
Diffstat (limited to 'drivers/base/power/main.c')
-rw-r--r-- | drivers/base/power/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c index 1b41fca3d65a..c9fbb9d5484d 100644 --- a/drivers/base/power/main.c +++ b/drivers/base/power/main.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <linux/async.h> | 29 | #include <linux/async.h> |
30 | #include <linux/suspend.h> | 30 | #include <linux/suspend.h> |
31 | #include <trace/events/power.h> | 31 | #include <trace/events/power.h> |
32 | #include <linux/cpufreq.h> | ||
32 | #include <linux/cpuidle.h> | 33 | #include <linux/cpuidle.h> |
33 | #include <linux/timer.h> | 34 | #include <linux/timer.h> |
34 | 35 | ||
@@ -789,6 +790,8 @@ void dpm_resume(pm_message_t state) | |||
789 | mutex_unlock(&dpm_list_mtx); | 790 | mutex_unlock(&dpm_list_mtx); |
790 | async_synchronize_full(); | 791 | async_synchronize_full(); |
791 | dpm_show_time(starttime, state, NULL); | 792 | dpm_show_time(starttime, state, NULL); |
793 | |||
794 | cpufreq_resume(); | ||
792 | } | 795 | } |
793 | 796 | ||
794 | /** | 797 | /** |
@@ -1259,6 +1262,8 @@ int dpm_suspend(pm_message_t state) | |||
1259 | 1262 | ||
1260 | might_sleep(); | 1263 | might_sleep(); |
1261 | 1264 | ||
1265 | cpufreq_suspend(); | ||
1266 | |||
1262 | mutex_lock(&dpm_list_mtx); | 1267 | mutex_lock(&dpm_list_mtx); |
1263 | pm_transition = state; | 1268 | pm_transition = state; |
1264 | async_error = 0; | 1269 | async_error = 0; |