Skip to content
  1. Jan 03, 2024
  2. Jan 02, 2024
  3. Dec 30, 2023
  4. Dec 29, 2023
  5. Dec 28, 2023
    • Rafael J. Wysocki's avatar
      thermal: core: Resume thermal zones asynchronously · 5a5efdaf
      Rafael J. Wysocki authored
      
      
      The resume of thermal zones in thermal_pm_notify() is carried out
      sequentially, which may be a problem if __thermal_zone_device_update()
      takes a significant time to run for some thermal zones, because some
      other thermal zones may need to wait for them to resume then and if
      any other PM notifiers are going to be invoked after the thermal one,
      they will need to wait for it either.
      
      To address this, make thermal_pm_notify() switch the poll_queue delayed
      work over to a one-shot thermal_zone_device_resume() work function that
      will restore the original one during the thermal zone resume and queue
      up poll_queue without a delay for each thermal zone.
      
      Link: https://lore.kernel.org/linux-pm/20231120234015.3273143-1-radusolea@google.com/
      Reported-by: default avatarRadu Solea <radusolea@google.com>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      5a5efdaf