diff options
| author | Ricardo Neri <ricardo.neri-calderon@linux.intel.com> | 2026-06-13 15:17:47 -0700 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-06-19 20:06:54 +0200 |
| commit | b91d287fa7a1ba0727eed5823c6ee4924ee5fa31 (patch) | |
| tree | f174794ef008d75f5d7b38cb0a130befe2729a43 /mm/tests/git@git.tavy.me:linux.git | |
| parent | f3c4a338b5064effd9ce6d2cfd26c73daa56f1f4 (diff) | |
thermal: intel: Fix dangling resources on thermal_throttle_online() failure
The function thermal_throttle_add_dev() may fail and abort a CPU hotplug
online operation. Since the failure occurs within the online callback,
thermal_throttle_online(), the CPU hotplug framework does not invoke the
corresponding offline callback. As a result, the hardware and software
resources set up during the failed operation are not torn down.
Since only thermal_throttle_add_dev() can fail, call it before setting up
the rest of the resources.
Fixes: f6656208f04e ("x86/mce/therm_throt: Optimize notifications of thermal throttle")
Signed-off-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Link: https://patch.msgid.link/20260613-rneri-directed-therm-intr-v3-1-3a26d1e47fc8@linux.intel.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'mm/tests/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
