summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-04-22 18:39:19 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-05-12 22:45:46 +0300
commit9e12b7be7f051f639b79a8c449c81519c975cd50 (patch)
treea0a1eeec0fa7d0eb2f54e393f24710b6cfa3271c /include/linux/debugobjects.h
parent8c5281c91e1f6c719ee6db9e18ef5efb618425e7 (diff)
downloadlinux-9e12b7be7f051f639b79a8c449c81519c975cd50.tar.xz
thermal: core: Simplify unregistration of governors
Thermal governors are only unregistered in the thermal_init() error path and they actually are only deleted from thermal_governor_list. Put the entire code needed to do that to thermal_unregister_governors() and rearrange thermal_init() to call that function also when thermal_register_governors() returns an error. This allows thermal_unregister_governor() to be dropped and thermal_register_governor() that is only called by thermal_register_governors() can be made static __init, so the headers of these two functions can be dropped from thermal_core.h. No intentional functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Link: https://patch.msgid.link/9615355.CDJkKcVGEf@rafael.j.wysocki
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions