mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
PM / devfreq: Use more accurate returned new_freq as resume_freq
[ Upstream commit62453f1ba5] Use the more accurate returned new_freq as resume_freq. It's the same as how devfreq->previous_freq was updated. Fixes:83f8ca45af("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>
This commit is contained in:
parent
165b71a98c
commit
0681c62d1e
|
|
@ -377,7 +377,7 @@ static int devfreq_set_target(struct devfreq *devfreq, unsigned long new_freq,
|
||||||
devfreq->previous_freq = new_freq;
|
devfreq->previous_freq = new_freq;
|
||||||
|
|
||||||
if (devfreq->suspend_freq)
|
if (devfreq->suspend_freq)
|
||||||
devfreq->resume_freq = cur_freq;
|
devfreq->resume_freq = new_freq;
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user