PM / devfreq: tegra30: Reset boosting on startup
authorDmitry Osipenko <digetx@gmail.com>
Mon, 4 Nov 2019 21:56:07 +0000 (00:56 +0300)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 6 Nov 2019 03:04:01 +0000 (12:04 +0900)
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 <cw00.choi@samsung.com>
Tested-by: Peter Geis <pgwipeout@gmail.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/tegra30-devfreq.c

index 6960d8b..9cb2d64 100644 (file)
@@ -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;