]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thermal/debugfs: Move some statements from under thermal_dbg->lock
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 28 May 2024 14:59:55 +0000 (16:59 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 11 Jun 2024 19:04:34 +0000 (21:04 +0200)
commit8f9025baf66ff4781ae3d40f9bc457b0a022b1a3
tree725e7bad4a565884712c6af98a69d4309faff80c
parent881c084fc980d05d05dceac4d789a473b42e177d
thermal/debugfs: Move some statements from under thermal_dbg->lock

The tz_dbg local variable assignments in thermal_debug_tz_trip_up(),
thermal_debug_tz_trip_down(), and thermal_debug_update_trip_stats()
need not be carried out under thermal_dbg->lock, so move them from
under that lock (to avoid possible future confusion).

While at it, reorder local variable definitions in
thermal_debug_tz_trip_up() for more clarity.

No functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/thermal_debugfs.c