Convert thermal subsystem to the IDA allocator
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | thermal core: convert ID allocation to IDAdrivers/ include/ | +28 | 0 replies | |
| 2/4 | thermal: convert clock cooling to use an IDAdrivers/ | +8 | 0 replies | |
| 3/4 | thermal: convert cpu_cooling to use an IDAdrivers/ | +11 | 0 replies | |
| 4/4 | thermal: convert devfreq_cooling to use an IDAdrivers/ | +9 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] Convert thermal subsystem to the IDA allocator
From: Matthew Wilcox <[email protected]>
None of the ID allocations are in a hot path, so I think it's better to use the ida_simple_get/ida_simple_remove API instead of having individual mutexes.
I've only compile-tested these changes ... even that is quite tricky given the maze of Kconfig options which make it hard to select those drivers. I eventually gave up and played games with the header files to get the compiler to compile them cleanly.
Matthew Wilcox (4):
thermal core: convert ID allocation to IDA
thermal: convert clock cooling to use an IDA
thermal: convert cpu_cooling to use an IDA
thermal: convert devfreq_cooling to use an IDA
drivers/thermal/clock_cooling.c | 50 +++++--------------------- drivers/thermal/cpu_cooling.c | 63 ++++++-------------------------- drivers/thermal/devfreq_cooling.c | 53 +++++---------------------- drivers/thermal/thermal_core.c | 75 ++++++++++++++------------------------- include/linux/thermal.h | 4 +-- 5 files changed, 56 insertions(+), 189 deletions(-)
Signature · 1 line
2.11.0