提交 8f86014e 编写于 作者: D Dong Aisheng 提交者: Zheng Zengkai

PM / devfreq: Use more accurate returned new_freq as resume_freq

stable inclusion
from stable-5.10.37
commit 0681c62d1ea2eba43aa8efb03708f7c3334fd863
bugzilla: 51868
CVE: NA

--------------------------------

[ Upstream commit 62453f1b ]

Use the more accurate returned new_freq as resume_freq.
It's the same as how devfreq->previous_freq was updated.

Fixes: 83f8ca45 ("PM / devfreq: add support for suspend/resume of a devfreq device")
Signed-off-by: NDong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 246516ee
......@@ -377,7 +377,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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册