thermal_interrupt.h 771 B

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