]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: powernv: Fix uninitialized lpstate_idx in gpstates_timer_handler()
authorAkshay Adiga <akshay.adiga@linux.vnet.ibm.com>
Mon, 14 Nov 2016 11:59:27 +0000 (17:29 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 14 Nov 2016 20:32:31 +0000 (21:32 +0100)
commitcd607371040deacd6dbc10446961d074b6858ad2
tree6a0c091f2d23f42574fa25146c66efb08b96747c
parentf05787bae25d249d3b93d3aecafc98b1f260f763
cpufreq: powernv: Fix uninitialized lpstate_idx in gpstates_timer_handler()

lpstate_idx remains uninitialized in the case when elapsed_time
is greater than MAX_RAMP_DOWN_TIME.  At the end of rampdown the
global pstate should be equal to the local pstate.

Fixes: c7e14ea26c01 (cpufreq: powernv: Use PMCR to verify global and localpstate)
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Akshay Adiga <akshay.adiga@linux.vnet.ibm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/powernv-cpufreq.c