From: Dmitry Osipenko Date: Mon, 4 Nov 2019 21:56:07 +0000 (+0300) Subject: PM / devfreq: tegra30: Reset boosting on startup X-Git-Tag: v5.10.7~3811^2~2^2^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=142665582736f7f0a5c11a606271705020ba2f4e;p=platform%2Fkernel%2Flinux-rpi.git PM / devfreq: tegra30: Reset boosting on startup Governor could be stopped while boosting is active. We have assumption that everything is reset on governor's restart, including the boosting value, which was missed. Reviewed-by: Chanwoo Choi Tested-by: Peter Geis Signed-off-by: Dmitry Osipenko Signed-off-by: Chanwoo Choi --- diff --git a/drivers/devfreq/tegra30-devfreq.c b/drivers/devfreq/tegra30-devfreq.c index 6960d8b..9cb2d64 100644 --- a/drivers/devfreq/tegra30-devfreq.c +++ b/drivers/devfreq/tegra30-devfreq.c @@ -467,6 +467,9 @@ static void tegra_actmon_configure_device(struct tegra_devfreq *tegra, { u32 val = 0; + /* reset boosting on governor's restart */ + dev->boost_freq = 0; + dev->target_freq = tegra->cur_freq; dev->avg_count = tegra->cur_freq * ACTMON_SAMPLING_PERIOD;