linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Convert thermal subsystem to the IDA allocator
@ 2016-12-21 17:47 Matthew Wilcox
  2016-12-21 17:47 ` [PATCH 1/4] thermal core: convert ID allocation to IDA Matthew Wilcox
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Matthew Wilcox @ 2016-12-21 17:47 UTC (permalink / raw)
  To: Zhang Rui; +Cc: Matthew Wilcox, linux-pm

From: Matthew Wilcox <mawilcox@microsoft.com>

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(-)

-- 
2.11.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-01-04  4:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-21 17:47 [PATCH 0/4] Convert thermal subsystem to the IDA allocator Matthew Wilcox
2016-12-21 17:47 ` [PATCH 1/4] thermal core: convert ID allocation to IDA Matthew Wilcox
2016-12-21 17:47 ` [PATCH 2/4] thermal: convert clock cooling to use an IDA Matthew Wilcox
2016-12-21 17:47 ` [PATCH 3/4] thermal: convert cpu_cooling " Matthew Wilcox
2016-12-21 17:47 ` [PATCH 4/4] thermal: convert devfreq_cooling " Matthew Wilcox
2017-01-04  4:49 ` [PATCH 0/4] Convert thermal subsystem to the IDA allocator Zhang Rui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).