OSDN Git Service

cpufreq: powernv: Dont assume distinct pstate values for nominal and pmin
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Fri, 12 Jan 2018 07:13:53 +0000 (12:43 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 12 Jan 2018 12:44:08 +0000 (13:44 +0100)
commit3fa4680b860bf48b437d6a2c039789c4abe202ae
treee50e202b40275ad7b8066bc63311237516cabd98
parentd8de7a44e11f98f2c2a4c2e12e79ba9ffb839306
cpufreq: powernv: Dont assume distinct pstate values for nominal and pmin

Some OpenPOWER boxes can have same pstate values for nominal and
pmin pstates. In these boxes the current code will not initialize
'powernv_pstate_info.min' variable and result in erroneous CPU
frequency reporting. This patch fixes this problem.

Fixes: 09ca4c9b5958 (cpufreq: powernv: Replacing pstate_id with frequency table index)
Reported-by: Alvin Wang <wangat@tw.ibm.com>
Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: 4.8+ <stable@vger.kernel.org> # 4.8+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/powernv-cpufreq.c