提交 62453f1b 编写于 作者: D Dong Aisheng 提交者: Chanwoo Choi

PM / devfreq: Use more accurate returned new_freq as resume_freq

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>
上级 8b50a799
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册