Commit 62453f1b authored by Dong Aisheng's avatar Dong Aisheng Committed by Chanwoo Choi
Browse files

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: default avatarDong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent 8b50a799
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}