Skip to content

Convert thermal subsystem to the IDA allocator

Matthew Wilcox linux-pm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4thermal core: convert ID allocation to IDAdrivers/thermal/thermal_core.c include/linux/thermal.h+28 -510 replies
2/4thermal: convert clock cooling to use an IDAdrivers/thermal/clock_cooling.c+8 -420 replies
3/4thermal: convert cpu_cooling to use an IDAdrivers/thermal/cpu_cooling.c+11 -520 replies
4/4thermal: convert devfreq_cooling to use an IDAdrivers/thermal/devfreq_cooling.c+9 -440 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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