cpufreq: mediatek: Record previous target vproc value
authorJia-Wei Chang <jia-wei.chang@mediatek.com>
Fri, 22 Apr 2022 07:52:29 +0000 (15:52 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 26 Apr 2022 06:39:10 +0000 (12:09 +0530)
commitbffcd33313dcfaf6357753c25c8ef8b4c628e46b
tree735ceda29624406c6fc267fd3b0737323edab3eb
parent4aef4aeaf1dd47b2242ba78857b2773b7a5b5b05
cpufreq: mediatek: Record previous target vproc value

We found the buck voltage may not be exactly the same with what we set
because CPU may share the same buck with other module.
Therefore, we need to record the previous desired value instead of reading
it from regulators.

Signed-off-by: Andrew-sh.Cheng <andrew-sh.cheng@mediatek.com>
Signed-off-by: Jia-Wei Chang <jia-wei.chang@mediatek.com>
Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/mediatek-cpufreq.c