]> git.baikalelectronics.ru Git - kernel.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)
commit7395cefb60e7bb195ba3d306acd45d825c8dd4b8
tree2d2021f8161db3e9ed38b9a966a225b66dff8e58
parent68881e1110df4ec53c50a4f2f39d4367adef02ad
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