]> www.infradead.org Git - users/willy/linux.git/commit
thermal: core: Store trip sysfs attributes in thermal_trip_desc
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 29 Jul 2024 16:25:03 +0000 (18:25 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 13 Aug 2024 18:50:57 +0000 (20:50 +0200)
commit66b263306a86c0f2d3cdb44e3722db6cff3a32b3
tree709312a0c0364c0fe983ace2f58061a269d17fb5
parent8ecd953ca5850d2f83f548d4bbcf672d2d2cd0ca
thermal: core: Store trip sysfs attributes in thermal_trip_desc

Instead of allocating memory for trip point sysfs attributes separately,
store them in struct thermal_trip_desc for each trip individually which
allows a few extra memory allocations to be avoided.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/46571375.fMDQidcC6G@rjwysocki.net
drivers/thermal/thermal_core.h
drivers/thermal/thermal_sysfs.c