aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pnp
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2012-02-06 08:17:11 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-13 08:14:05 -0700
commitd70e0fd149e70e664b1f9673a710799e1f432606 (patch)
tree99f096a67c6b0c1ff725f7a8cd12327a3ed5fec5 /drivers/pnp
parent19f0f33c99c20ba6d34ab935642cf98fa23d0ca3 (diff)
downloadkernel_samsung_smdk4412-d70e0fd149e70e664b1f9673a710799e1f432606.zip
kernel_samsung_smdk4412-d70e0fd149e70e664b1f9673a710799e1f432606.tar.gz
kernel_samsung_smdk4412-d70e0fd149e70e664b1f9673a710799e1f432606.tar.bz2
ACPI: Do cpufreq clamping for throttling per package v2
commit 2815ab92ba3ab27556212cc306288dc95692824b upstream. On Intel CPUs the processor typically uses the highest frequency set by any logical CPU. When the system overheats Linux first forces the frequency to the lowest available one to lower the temperature. However this was done only per logical CPU, which means all logical CPUs in a package would need to go through this before the frequency is actually lowered. Worse this delay actually prevents real throttling, because the real throttle code only proceeds when the lowest frequency is already reached. So when a throttle event happens force the lowest frequency for all CPUs in the package where it happened. The per CPU state is now kept per package, not per logical CPU. An alternative would be to do it per cpufreq unit, but since we want to bring down the temperature of the complete chip it's better to do it for all. In principle it may even make sense to do it for all CPUs, but I kept it on the package for now. With this change the frequency is actually lowered, which in terms also allows real throttling to proceed. I also removed an unnecessary per cpu variable initialization. v2: Fix package mapping Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pnp')
0 files changed, 0 insertions, 0 deletions