x86, hwmon: Package Level Thermal/Power: thermal throttling handler
authorFenghua Yu <fenghua.yu@intel.com>
Fri, 30 Jul 2010 00:13:44 +0000 (17:13 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 3 Aug 2010 22:58:56 +0000 (15:58 -0700)
commit55d435a227bd28c77afab326de44dfacc0b15059
tree5aa00f63286b62044220c4b1a4a0f22e241c1e1e
parentcb84b19474384c572ba3aa2345815e555112ebf5
x86, hwmon: Package Level Thermal/Power: thermal throttling handler

Add package level thermal throttle interrupt support. The interrupt handler
increases package level thermal throttle count. It also logs the event in MCE
log.

The package level thermal throttle interrupt happens across threads in a
package. Each thread handles the interrupt individually. User level application
is supposed to retrieve correct event count and log based on package/thread
topology. This is the same situation for core level interrupt handler. In the
future, interrupt may be reported only per package or per core.

core_throttle_count and package_throttle_count are used for user interface.
Previously only throttle_count is used for core throttle count. If you think
new core_throttle_count name breaks user interface, I can change this part.

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
LKML-Reference: <1280448826-12004-4-git-send-email-fenghua.yu@intel.com>
Reviewed-by: Len Brown <len.brown@intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/cpu/mcheck/therm_throt.c