diff options
| author | Dong Aisheng <aisheng.dong@nxp.com> | 2021-03-23 15:20:08 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-14 09:44:20 +0200 |
| commit | 3b0cd47fe1b72003b4e292073a89e7302a9d8011 (patch) | |
| tree | 3118802dcbddc4a2ea51593fc4c6a02b3426f309 /drivers/devfreq | |
| parent | 51a5e5e93c014753b01251e0d232d0549295feb7 (diff) | |
| download | linux-3b0cd47fe1b72003b4e292073a89e7302a9d8011.tar.gz linux-3b0cd47fe1b72003b4e292073a89e7302a9d8011.tar.bz2 linux-3b0cd47fe1b72003b4e292073a89e7302a9d8011.zip | |
PM / devfreq: Use more accurate returned new_freq as resume_freq
[ Upstream commit 62453f1ba5d5def9d58e140a50f3f168f028da38 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/devfreq')
| -rw-r--r-- | drivers/devfreq/devfreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index dce45f7a497d..c79652ee94be 100644 --- a/drivers/devfreq/devfreq.c +++ b/drivers/devfreq/devfreq.c @@ -319,7 +319,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; } |
