projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b50a79
)
PM / devfreq: Use more accurate returned new_freq as resume_freq
author
Dong Aisheng
<aisheng.dong@nxp.com>
Tue, 23 Mar 2021 07:20:08 +0000
(15:20 +0800)
committer
Chanwoo Choi
<cw00.choi@samsung.com>
Thu, 8 Apr 2021 04:14:45 +0000
(13:14 +0900)
Use the more accurate returned new_freq as resume_freq.
It's the same as how devfreq->previous_freq was updated.
Fixes: 83f8ca45afbf0 ("PM / devfreq: add support for suspend/resume of a devfreq device")
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/devfreq.c
patch
|
blob
|
history
diff --git
a/drivers/devfreq/devfreq.c
b/drivers/devfreq/devfreq.c
index 99b2eeedc2387e0af41c519e5751679f368d4842..fe08c46642f7c5ccda920c949d913796c21c9046 100644
(file)
--- a/
drivers/devfreq/devfreq.c
+++ b/
drivers/devfreq/devfreq.c
@@
-388,7
+388,7
@@
static int devfreq_set_target(struct devfreq *devfreq, unsigned long new_freq,
devfreq->previous_freq = new_freq;
if (devfreq->suspend_freq)
- devfreq->resume_freq =
cur
_freq;
+ devfreq->resume_freq =
new
_freq;
return err;
}