mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[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 <[email protected]> Signed-off-by: Andi Kleen <[email protected]>
This commit is contained in:
parent
3b17167283
commit
15d5f83983
9 changed files with 109 additions and 41 deletions
6
include/asm-i386/therm_throt.h
Normal file
6
include/asm-i386/therm_throt.h
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#ifndef __ASM_I386_THERM_THROT_H__
|
||||
#define __ASM_I386_THERM_THROT_H__ 1
|
||||
|
||||
int therm_throt_process(int curr);
|
||||
|
||||
#endif /* __ASM_I386_THERM_THROT_H__ */
|
||||
Loading…
Reference in a new issue