]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
cpufreq: powernv: Handle throttling due to Pmax capping at chip level
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Thu, 16 Jul 2015 08:04:18 +0000 (13:34 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 28 Jul 2015 15:24:12 +0000 (17:24 +0200)
commit053819e0bf8407746cc5febf7a4947bee50377b4
tree52e0b61392f6ca585665cc266e7852944d751980
parenta34e63b14486e98cf78c99bf8ef141de7508dbc2
cpufreq: powernv: Handle throttling due to Pmax capping at chip level

The On-Chip-Controller(OCC) can throttle cpu frequency by reducing the
max allowed frequency for that chip if the chip exceeds its power or
temperature limits. As Pmax capping is a chip level condition report
this throttling behavior at chip level and also do not set the global
'throttled' on Pmax capping instead set the per-chip throttled
variable. Report unthrottling if Pmax is restored after throttling.

This patch adds a structure to store chip id and throttled state of
the chip.

Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Reviewed-by: Preeti U Murthy <preeti@linux.vnet.ibm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/powernv-cpufreq.c