[PATCH] x86: Refactor thermal throttle processing
authorDmitriy Zavin <dmitriyz@google.com>
Tue, 26 Sep 2006 08:52:42 +0000 (10:52 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Tue, 26 Sep 2006 08:52:42 +0000 (10:52 +0200)
commit15d5f8398311f565682959daaca30e3ca7aea600
treeba38e77782832191dd38e182e99525870f83c085
parent3b171672831b9633c2ed8fa94805255cd4d5af19
[PATCH] x86: Refactor thermal throttle processing

Refactor the event processing (syslog messaging and rate limiting)
into separate file therm_throt.c. This allows consistent reporting
of CPU thermal throttle events.

After ACK'ing the interrupt, if the event is current, the user
(p4.c/mce_intel.c) calls therm_throt_process to log (and rate limit)
the event. If that function returns 1, the user has the option to log
things further (such as to mce_log in x86_64).

AK: minor cleanup

Signed-off-by: Dmitriy Zavin <dmitriyz@google.com>
Signed-off-by: Andi Kleen <ak@suse.de>
arch/i386/kernel/cpu/mcheck/Makefile
arch/i386/kernel/cpu/mcheck/p4.c
arch/i386/kernel/cpu/mcheck/therm_throt.c [new file with mode: 0644]
arch/x86_64/kernel/Makefile
arch/x86_64/kernel/mce.c
arch/x86_64/kernel/mce_intel.c
include/asm-i386/therm_throt.h [new file with mode: 0644]
include/asm-x86_64/mce.h
include/asm-x86_64/therm_throt.h [new file with mode: 0644]