mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[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 <[email protected]> Signed-off-by: Andi Kleen <[email protected]>
This commit is contained in:
parent
66aea9913c
commit
3222b36f46
4 changed files with 136 additions and 6 deletions
|
|
@ -1,6 +1,9 @@
|
|||
#ifndef __ASM_I386_THERM_THROT_H__
|
||||
#define __ASM_I386_THERM_THROT_H__ 1
|
||||
|
||||
#include <asm/atomic.h>
|
||||
|
||||
extern atomic_t therm_throt_en;
|
||||
int therm_throt_process(int curr);
|
||||
|
||||
#endif /* __ASM_I386_THERM_THROT_H__ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue