diff options
author | Dmitriy Zavin <dmitriyz@google.com> | 2006-09-26 04:52:42 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2006-09-26 04:52:42 -0400 |
commit | 3222b36f46c22f46697a0a53fa8804153a32669f (patch) | |
tree | cf3625063b02ac9854ec57682ac8cad06f92267d /include/asm-i386/therm_throt.h | |
parent | 66aea9913cf435fe92ebb7bf869b4f15901ab993 (diff) |
[PATCH] x86: Add a cumulative thermal throttle event counter.
The counter is exported to /sys that keeps track of the
number of thermal events, such that the user knows how bad the
thermal problem might be (since the logging to syslog and mcelog
is rate limited).
AK: Fixed cpu hotplug locking
Signed-off-by: Dmitriy Zavin <dmitriyz@google.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'include/asm-i386/therm_throt.h')
-rw-r--r-- | include/asm-i386/therm_throt.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-i386/therm_throt.h b/include/asm-i386/therm_throt.h index 3c9c22cc10c9..399bf6026b16 100644 --- a/include/asm-i386/therm_throt.h +++ b/include/asm-i386/therm_throt.h | |||
@@ -1,6 +1,9 @@ | |||
1 | #ifndef __ASM_I386_THERM_THROT_H__ | 1 | #ifndef __ASM_I386_THERM_THROT_H__ |
2 | #define __ASM_I386_THERM_THROT_H__ 1 | 2 | #define __ASM_I386_THERM_THROT_H__ 1 |
3 | 3 | ||
4 | #include <asm/atomic.h> | ||
5 | |||
6 | extern atomic_t therm_throt_en; | ||
4 | int therm_throt_process(int curr); | 7 | int therm_throt_process(int curr); |
5 | 8 | ||
6 | #endif /* __ASM_I386_THERM_THROT_H__ */ | 9 | #endif /* __ASM_I386_THERM_THROT_H__ */ |