thermal_debugfs.h 1.7 KB

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifdef CONFIG_THERMAL_DEBUGFS
  3. void thermal_debug_init(void);
  4. void thermal_debug_cdev_add(struct thermal_cooling_device *cdev, int state);
  5. void thermal_debug_cdev_remove(struct thermal_cooling_device *cdev);
  6. void thermal_debug_cdev_state_update(const struct thermal_cooling_device *cdev, int state);
  7. void thermal_debug_tz_add(struct thermal_zone_device *tz);
  8. void thermal_debug_tz_remove(struct thermal_zone_device *tz);
  9. void thermal_debug_tz_resume(struct thermal_zone_device *tz);
  10. void thermal_debug_tz_trip_up(struct thermal_zone_device *tz,
  11. const struct thermal_trip *trip);
  12. void thermal_debug_tz_trip_down(struct thermal_zone_device *tz,
  13. const struct thermal_trip *trip);
  14. void thermal_debug_update_trip_stats(struct thermal_zone_device *tz);
  15. #else
  16. static inline void thermal_debug_init(void) {}
  17. static inline void thermal_debug_cdev_add(struct thermal_cooling_device *cdev, int state) {}
  18. static inline void thermal_debug_cdev_remove(struct thermal_cooling_device *cdev) {}
  19. static inline void thermal_debug_cdev_state_update(const struct thermal_cooling_device *cdev,
  20. int state) {}
  21. static inline void thermal_debug_tz_add(struct thermal_zone_device *tz) {}
  22. static inline void thermal_debug_tz_remove(struct thermal_zone_device *tz) {}
  23. static inline void thermal_debug_tz_resume(struct thermal_zone_device *tz) {}
  24. static inline void thermal_debug_tz_trip_up(struct thermal_zone_device *tz,
  25. const struct thermal_trip *trip) {};
  26. static inline void thermal_debug_tz_trip_down(struct thermal_zone_device *tz,
  27. const struct thermal_trip *trip) {}
  28. static inline void thermal_debug_update_trip_stats(struct thermal_zone_device *tz) {}
  29. #endif /* CONFIG_THERMAL_DEBUGFS */