linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 0/2] cpufreq: Allow light-weight tear down and bring up of CPUs
@ 2019-02-12  7:06 Viresh Kumar
  2019-02-12  7:06 ` [PATCH V2 1/2] " Viresh Kumar
  2019-02-12  7:06 ` [PATCH V2 2/2] cpufreq: dt: Implement online/offline() callbacks Viresh Kumar
  0 siblings, 2 replies; 10+ messages in thread
From: Viresh Kumar @ 2019-02-12  7:06 UTC (permalink / raw)
  To: Rafael Wysocki
  Cc: Viresh Kumar, linux-pm, Vincent Guittot, Sudeep Holla,
	Marek Szyprowski, linux-kernel

The cpufreq core doesn't remove the cpufreq policy anymore on CPU
offline operation, rather that happens when the CPU device gets
unregistered from the kernel. This allows faster recovery when the CPU
comes back online. This is also very useful during system wide
suspend/resume where we offline all non-boot CPUs during suspend and
then bring them back on resume.

This patcset takes the same idea a step ahead to allow drivers to do
light weight tear-down and bring up during CPU offline/online operations
and updates the cpufreq-dt driver to implement the new helpers.

V1->V2:
- s/light_weight_exit()/offline()
- Also introduce the online() counterpart

Viresh Kumar (2):
  cpufreq: Allow light-weight tear down and bring up of CPUs
  cpufreq: dt: Implement online/offline() callbacks

 drivers/cpufreq/cpufreq-dt.c | 17 +++++++++++
 drivers/cpufreq/cpufreq.c    | 55 +++++++++++++++++++++++-------------
 include/linux/cpufreq.h      |  2 ++
 3 files changed, 55 insertions(+), 19 deletions(-)

-- 
2.20.1.321.g9e740568ce00


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

end of thread, other threads:[~2019-02-19 10:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-12  7:06 [PATCH V2 0/2] cpufreq: Allow light-weight tear down and bring up of CPUs Viresh Kumar
2019-02-12  7:06 ` [PATCH V2 1/2] " Viresh Kumar
2019-02-12 10:47   ` [PATCH V3 " Viresh Kumar
2019-02-12 10:54     ` Rafael J. Wysocki
2019-02-12 11:06   ` [PATCH V4 " Viresh Kumar
2019-02-19 10:25     ` Rafael J. Wysocki
2019-02-12  7:06 ` [PATCH V2 2/2] cpufreq: dt: Implement online/offline() callbacks Viresh Kumar
2019-02-12  9:43   ` Rafael J. Wysocki
2019-02-12  9:49     ` Viresh Kumar
2019-02-12 10:26       ` Rafael J. Wysocki

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