[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>
Showing
- arch/i386/kernel/cpu/mcheck/Makefile 1 addition, 1 deletionarch/i386/kernel/cpu/mcheck/Makefile
- arch/i386/kernel/cpu/mcheck/p4.c 6 additions, 17 deletionsarch/i386/kernel/cpu/mcheck/p4.c
- arch/i386/kernel/cpu/mcheck/therm_throt.c 58 additions, 0 deletionsarch/i386/kernel/cpu/mcheck/therm_throt.c
- arch/x86_64/kernel/Makefile 2 additions, 2 deletionsarch/x86_64/kernel/Makefile
- arch/x86_64/kernel/mce.c 27 additions, 0 deletionsarch/x86_64/kernel/mce.c
- arch/x86_64/kernel/mce_intel.c 6 additions, 21 deletionsarch/x86_64/kernel/mce_intel.c
- include/asm-i386/therm_throt.h 6 additions, 0 deletionsinclude/asm-i386/therm_throt.h
- include/asm-x86_64/mce.h 2 additions, 0 deletionsinclude/asm-x86_64/mce.h
- include/asm-x86_64/therm_throt.h 1 addition, 0 deletionsinclude/asm-x86_64/therm_throt.h
Loading
Please register or sign in to comment