summaryrefslogtreecommitdiff
path: root/drivers/platform/x86
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-08-22 21:26:09 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-08-23 15:56:29 +0200
commit24aad192c671720744a558d38c4033b4b36ba5f1 (patch)
tree43e9deb6a7682b1a3b8909c7fe0d2628fab39540 /drivers/platform/x86
parent91d7ed957eb2e0a13e7d44195b529f49701c5745 (diff)
downloadlwn-24aad192c671720744a558d38c4033b4b36ba5f1.tar.gz
lwn-24aad192c671720744a558d38c4033b4b36ba5f1.zip
thermal: core: Drop redundant checks from thermal_bind_cdev_to_trip()
Since thermal_bind_cdev_to_trip() is only called by thermal_zone_cdev_binding() under the thermal zone lock and the latter is only called by thermal_zone_device_register_with_trips() and __thermal_cooling_device_register(), under thermal_list_lock in both cases, both lockdep_assert_held() assertions can be dropped from it. Moreover, in both cases thermal_zone_cdev_binding() is called after both tz and cdev have been added to the global lists of thermal zones and cooling device, respectively, so the check against their list nodes in thermal_bind_cdev_to_trip() is redundant and can be dropped either. Link: https://lore.kernel.org/linux-pm/CAJZ5v0jwkc2PB+osSkkYF9vJ1Vpp3MFE=cGQmQ2Xzjb3yjVfJg@mail.gmail.com/ Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://patch.msgid.link/4607540.LvFx2qVVIh@rjwysocki.net
Diffstat (limited to 'drivers/platform/x86')
0 files changed, 0 insertions, 0 deletions