projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e2af25
)
PM: sleep: call devfreq suspend/resume
author
Lukasz Luba
<
[email protected]
>
Wed, 5 Dec 2018 11:05:55 +0000
(12:05 +0100)
committer
Rafael J. Wysocki
<
[email protected]
>
Wed, 2 Jan 2019 22:07:41 +0000
(23:07 +0100)
Devfreq framework supports suspend of its devices.
Call the the devfreq interface and allow devfreq devices
preserve/restore their states during suspend/resume.
Suggested-by: Tobias Jakobi <
[email protected]
>
Reviewed-by: Chanwoo Choi <
[email protected]
>
Signed-off-by: Lukasz Luba <
[email protected]
>
Signed-off-by: Rafael J. Wysocki <
[email protected]
>
drivers/base/power/main.c
patch
|
blob
|
history
diff --git
a/drivers/base/power/main.c
b/drivers/base/power/main.c
index a690fd40026051453ba138d4919811b726b9789b..0992e67e862b7d7e8a154ae9319f48be171fe2e7 100644
(file)
--- a/
drivers/base/power/main.c
+++ b/
drivers/base/power/main.c
@@
-32,6
+32,7
@@
#include <trace/events/power.h>
#include <linux/cpufreq.h>
#include <linux/cpuidle.h>
+#include <linux/devfreq.h>
#include <linux/timer.h>
#include "../base.h"
@@
-1078,6
+1079,7
@@
void dpm_resume(pm_message_t state)
dpm_show_time(starttime, state, 0, NULL);
cpufreq_resume();
+ devfreq_resume();
trace_suspend_resume(TPS("dpm_resume"), state.event, false);
}
@@
-1852,6
+1854,7
@@
int dpm_suspend(pm_message_t state)
trace_suspend_resume(TPS("dpm_suspend"), state.event, true);
might_sleep();
+ devfreq_suspend();
cpufreq_suspend();
mutex_lock(&dpm_list_mtx);