]> git.karo-electronics.de Git - karo-tx-linux.git/commit
thermal/powerclamp: fix missing newer package c-states
authorJacob Pan <jacob.jun.pan@linux.intel.com>
Thu, 7 May 2015 16:03:59 +0000 (09:03 -0700)
committerZhang Rui <rui.zhang@intel.com>
Sat, 9 May 2015 05:36:57 +0000 (13:36 +0800)
commitd81861138898ce8d83bc78f0d558ac3984225e2b
tree48762b68a0212357464468ac4026dd148330d724
parentf09bfdb6670e08b004959de727eeec73baa753a2
thermal/powerclamp: fix missing newer package c-states

Package C8 to C10 was introduced in newer Intel CPUs, we need to
include them in the package c-state residency calculation.
Otherwise, idle injection target is not accurately maintained by
the closed control loop.

Also cleaned up the code to make it scale better with large number
of c-states.

Reported-by: Kristen Carlson Accardi <kristen@linux.intel.com>
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/intel_powerclamp.c