]> asedeno.scripts.mit.edu Git - linux.git/commit
cpufreq: brcmstb-avs-cpufreq: properly retrieve P-state upon suspend
authorMarkus Mayer <mmayer@broadcom.com>
Mon, 19 Dec 2016 20:10:28 +0000 (12:10 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 27 Jan 2017 10:43:49 +0000 (11:43 +0100)
commit3c223c19aea85d3dda1416c187915f4a30b04b1f
tree2d2021f8161db3e9ed38b9a966a225b66dff8e58
parent9b02c54bc951fca884ba5719f42a27e8240965bf
cpufreq: brcmstb-avs-cpufreq: properly retrieve P-state upon suspend

The AVS GET_PMAP command does return a P-state along with the P-map
information. However, that P-state is the initial P-state when the
P-map was first downloaded to AVS. It is *not* the current P-state.

Therefore, we explicitly retrieve the P-state using the GET_PSTATE
command.

Signed-off-by: Markus Mayer <mmayer@broadcom.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/brcmstb-avs-cpufreq.c