diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-11-11 15:20:44 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-11-11 15:20:44 +0100 |
commit | c285b11e289dbe8973735ab8dc84210bde417673 (patch) | |
tree | 590882f7572fdbf582c31707a2d32152c1dee080 /include/linux | |
parent | 5469a8deac05391781bcd27e7c40f2c35121ca09 (diff) | |
parent | 08eb0493f6b3583b2efc90665a3e6980faee56a9 (diff) | |
download | linux-stable-c285b11e289dbe8973735ab8dc84210bde417673.tar.gz linux-stable-c285b11e289dbe8973735ab8dc84210bde417673.tar.bz2 linux-stable-c285b11e289dbe8973735ab8dc84210bde417673.zip |
Merge back thermal control material for 6.13
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/thermal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h index 25ea8fe2313e..754802478b96 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -56,6 +56,9 @@ enum thermal_notify_event { THERMAL_TZ_UNBIND_CDEV, /* Cooling dev is unbind from the thermal zone */ THERMAL_INSTANCE_WEIGHT_CHANGED, /* Thermal instance weight changed */ THERMAL_TZ_RESUME, /* Thermal zone is resuming after system sleep */ + THERMAL_TZ_ADD_THRESHOLD, /* Threshold added */ + THERMAL_TZ_DEL_THRESHOLD, /* Threshold deleted */ + THERMAL_TZ_FLUSH_THRESHOLDS, /* All thresholds deleted */ }; /** @@ -137,6 +140,9 @@ struct thermal_cooling_device { #endif }; +DEFINE_GUARD(cooling_dev, struct thermal_cooling_device *, mutex_lock(&_T->lock), + mutex_unlock(&_T->lock)) + /* Structure to define Thermal Zone parameters */ struct thermal_zone_params { const char *governor_name; |