thermal: core: Fix thermal zone suspend-resume synchronization
[platform/kernel/linux-starfive.git] / include / linux / thermal.h
index a5ae4af..4012f44 100644 (file)
@@ -150,6 +150,7 @@ struct thermal_cooling_device {
  * @node:      node in thermal_tz_list (in thermal_core.c)
  * @poll_queue:        delayed work for polling
  * @notify_event: Last notification event
+ * @suspended: thermal zone suspend indicator
  */
 struct thermal_zone_device {
        int id;
@@ -183,6 +184,7 @@ struct thermal_zone_device {
        struct list_head node;
        struct delayed_work poll_queue;
        enum thermal_notify_event notify_event;
+       bool suspended;
 };
 
 /**