projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40bba7b
)
cpufreq: ensure DISABLE_FURTHER_CPUFREQ effective when reboot or resume
author
陈亮
<cl@rock-chips.com>
Tue, 22 Apr 2014 07:57:02 +0000
(
00:57
-0700)
committer
陈亮
<cl@rock-chips.com>
Tue, 22 Apr 2014 08:03:38 +0000
(
01:03
-0700)
drivers/cpufreq/rockchip-cpufreq.c
patch
|
blob
|
history
diff --git
a/drivers/cpufreq/rockchip-cpufreq.c
b/drivers/cpufreq/rockchip-cpufreq.c
index 55a69105704c27cf8f56a795e1faad78cabb31f1..22a7baedd8a515fe0a10eb8a0381a2020827517c 100644
(file)
--- a/
drivers/cpufreq/rockchip-cpufreq.c
+++ b/
drivers/cpufreq/rockchip-cpufreq.c
@@
-356,6
+356,7
@@
static int cpufreq_pm_notifier_event(struct notifier_block *this, unsigned long
switch (event) {
case PM_SUSPEND_PREPARE:
+ policy->cur++;
ret = cpufreq_driver_target(policy, suspend_freq, DISABLE_FURTHER_CPUFREQ | CPUFREQ_RELATION_H);
if (ret < 0) {
ret = NOTIFY_BAD;
@@
-388,6
+389,7
@@
static int cpufreq_reboot_notifier_event(struct notifier_block *this, unsigned l
if (policy) {
is_booting = false;
+ policy->cur++;
cpufreq_driver_target(policy, suspend_freq, DISABLE_FURTHER_CPUFREQ | CPUFREQ_RELATION_H);
cpufreq_cpu_put(policy);
}