x86, hwmon: Package Level Thermal/Power: power limit
authorFenghua Yu <fenghua.yu@intel.com>
Fri, 30 Jul 2010 00:13:45 +0000 (17:13 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 3 Aug 2010 22:58:56 +0000 (15:58 -0700)
commit0199114c31798af5b83841b21759b64171060d9b
treea50a9eb0b1f2a43fb92d6143931fb0f688d766e8
parent55d435a227bd28c77afab326de44dfacc0b15059
x86, hwmon: Package Level Thermal/Power: power limit

Power limit notification feature is published in Intel 64 and IA-32
Architectures SDMV Vol 3A 14.5.6 Power Limit Notification.

It is implemented first on Intel Sandy Bridge platform.

The patch handles notification interrupt. Interrupt handler dumps power limit
information in log_buf, logs the event in mce log, and increases the event
counters (core_power_limit and package_power_limit). Upper level applications
could use the data to detect system health or diagnose functionality/performance
issues.

In the future, the event could be handled in a more fancy way.

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
LKML-Reference: <1280448826-12004-5-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