xref: /linux/drivers/thermal/intel/thermal_interrupt.h (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _INTEL_THERMAL_INTERRUPT_H
3 #define _INTEL_THERMAL_INTERRUPT_H
4 
5 #define CORE_LEVEL	0
6 #define PACKAGE_LEVEL	1
7 
8 /* Interrupt Handler for package thermal thresholds */
9 extern int (*platform_thermal_package_notify)(__u64 msr_val);
10 
11 /* Interrupt Handler for core thermal thresholds */
12 extern int (*platform_thermal_notify)(__u64 msr_val);
13 
14 /* Callback support of rate control, return true, if
15  * callback has rate control */
16 extern bool (*platform_thermal_package_rate_control)(void);
17 
18 /* Handle HWP interrupt */
19 extern void notify_hwp_interrupt(void);
20 
21 /* Common function to clear Package thermal status register */
22 extern void thermal_clear_package_intr_status(int level, u64 bit_mask);
23 
24 #endif /* _INTEL_THERMAL_INTERRUPT_H */
25