All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] cpuidle - support multiple drivers at a time
@ 2012-09-24 22:43 Daniel Lezcano
  2012-09-24 22:43 ` [PATCH 1/4] cpuidle : move driver's refcount to cpuidle Daniel Lezcano
                   ` (4 more replies)
  0 siblings, 5 replies; 23+ messages in thread
From: Daniel Lezcano @ 2012-09-24 22:43 UTC (permalink / raw)
  To: rjw, lenb
  Cc: linux-pm, lorenzo.pieralisi, pdeschrijver, linux-acpi, patches,
	linaro-dev

The discussion about having different cpus on the system with
different latencies bring us to a first attemp by adding a
pointer in the cpuidle_device to the states array.

But as Rafael suggested, it would make more sense to create a
driver per cpu [1].

This patch adds support for multiple cpuidle drivers.

It creates a per cpu cpuidle driver pointer.

In order to not break the different drivers, the function cpuidle_register_driver
assign for each cpu, the driver.

The multiple driver support is optional and if it is not set, the cpuide driver
core code remains the same (except some code reorganisation).

I did the following tests compiled, booted, tested without/with CONFIG_CPU_IDLE,
with/without CONFIG_CPU_IDLE_MULTIPLE_DRIVERS.

Tested on Core2 Duo T9500 with acpi_idle [and intel_idle]
Tested on ARM Dual Cortex-A9 U8500 (aka Snowball)

[1] http://www.spinics.net/lists/linux-acpi/msg37921.html

Daniel Lezcano (4):
  cpuidle : move driver's refcount to cpuidle
  cpuidle : move driver checking within the lock section
  cpuidle - prepare the driver core to be multi drivers aware
  cpuidle - support multiple drivers

 drivers/cpuidle/Kconfig   |    9 ++
 drivers/cpuidle/cpuidle.c |   24 ++++--
 drivers/cpuidle/driver.c  |  194 ++++++++++++++++++++++++++++++++++++++-------
 drivers/cpuidle/sysfs.c   |   50 +++++++++---
 include/linux/cpuidle.h   |    9 ++-
 5 files changed, 238 insertions(+), 48 deletions(-)

-- 
1.7.5.4


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

end of thread, other threads:[~2012-10-11 17:39 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-24 22:43 [PATCH 0/4] cpuidle - support multiple drivers at a time Daniel Lezcano
2012-09-24 22:43 ` [PATCH 1/4] cpuidle : move driver's refcount to cpuidle Daniel Lezcano
2012-09-24 22:43 ` [PATCH 2/4] cpuidle : move driver checking within the lock section Daniel Lezcano
     [not found]   ` <1348526634-19029-3-git-send-email-daniel.lezcano-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2012-10-07 20:17     ` Rafael J. Wysocki
2012-09-24 22:43 ` [PATCH 3/4] cpuidle - prepare the driver core to be multi drivers aware Daniel Lezcano
2012-09-24 22:43 ` [PATCH 4/4] cpuidle - support multiple drivers Daniel Lezcano
     [not found]   ` <1348526634-19029-5-git-send-email-daniel.lezcano-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2012-09-29  9:41     ` Francesco Lavra
2012-09-29 17:44       ` Daniel Lezcano
2012-09-29 22:07         ` Rafael J. Wysocki
2012-09-30 16:34           ` Daniel Lezcano
2012-10-02  2:08             ` Rafael J. Wysocki
     [not found]               ` <3723306.GAm1cPlZaP-sKB8Sp2ER+y1GS7QM15AGw@public.gmane.org>
2012-10-02 12:27                 ` Daniel Lezcano
2012-10-02 14:02                   ` Rafael J. Wysocki
2012-10-04 14:14   ` Peter De Schrijver
2012-10-04 14:26     ` Daniel Lezcano
2012-10-04 14:34       ` Peter De Schrijver
2012-10-07 21:09         ` Rafael J. Wysocki
2012-10-07 21:26   ` Rafael J. Wysocki
2012-10-11 10:04     ` Daniel Lezcano
2012-10-11 17:21       ` Rafael J. Wysocki
2012-10-11 17:39         ` Daniel Lezcano
2012-10-04 14:16 ` [PATCH 0/4] cpuidle - support multiple drivers at a time Peter De Schrijver
2012-10-04 14:27   ` Daniel Lezcano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.