Skip to contentSkip to conversation

cpuidle: add Calxeda SOC idle support

PATCH Applied Rob Herring 4 participants 5 messages Nov 7, 2012 – Nov 24, 2012 CPU idle time management framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpuidle: add Calxeda SOC idle support

From: Rob Herring <[email protected]>

Add support for core powergating on Calxeda platforms. Initially, this supports ECX-1000 (highbank), but support will be added for ECX-2000 later.

Cc Len Brown <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>

---

It's not really clear where we want ARM cpuidle drivers. We're moving everything else out of arch/arm, and my understanding is Len doesn't want them in drivers/idle. It seems kind of silly to me to have the framework and drivers in 2 places. I've put this in drivers/cpuidle, but it doesn't make any difference to me.

Rob

 drivers/cpuidle/Kconfig           |   10 +++
 drivers/cpuidle/Makefile          |    2 +
 drivers/cpuidle/cpuidle-calxeda.c |  161 +++++++++++++++++++++++++++++++++++++
 3 files changed, 173 insertions(+)
 create mode 100644 drivers/cpuidle/cpuidle-calxeda.c
drivers/cpuidle/Kconfig +10 -0
index a76b689..d2d007b 100644
@@ -21,3 +21,13 @@ config CPU_IDLE_GOV_MENU
 
 config ARCH_NEEDS_CPU_IDLE_COUPLED
 	def_bool n
+
+if CPU_IDLE
+
+config CPU_IDLE_CALXEDA
+	bool "CPU Idle Driver for Calxeda processors"
+	depends on ARCH_HIGHBANK
+	help
+	  Select this to enable cpuidle on Calxeda processors.
+
+endif
drivers/cpuidle/Makefile +2 -0
index 38c8f69..03ee874 100644
@@ -4,3 +4,5 @@
 
 obj-y += cpuidle.o driver.o governor.o sysfs.o governors/
 obj-$(CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED) += coupled.o
+
+obj-$(CONFIG_CPU_IDLE_CALXEDA) += cpuidle-calxeda.o
drivers/cpuidle/cpuidle-calxeda.c new file +161 -0

161 lines not on this page · raw message

Signature · 1 line
1.7.10.4
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Rob Herring

From: Rob Herring <[email protected]>

Add support for core powergating on Calxeda platforms. Initially, this supports ECX-1000 (highbank), but support will be added for ECX-2000 later.

Cc Len Brown <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Quoted 5 lines

It's not really clear where we want ARM cpuidle drivers. We're moving everything else out of arch/arm, and my understanding is Len doesn't want them in drivers/idle. It seems kind of silly to me to have the framework and drivers in 2 places. I've put this in drivers/cpuidle, but it doesn't make any difference to me.

Fine with me. I just don't want in in arch/arm because I'm guessing this will be shared with arm64, which in turn shares idle (and other) drivers with various powerpc, mips and x86 socs.

Arnd

#2 lore raw
Quoted 19 lines · Arnd Bergmann
Quoted 9 lines · Rob Herring

From: Rob Herring <[email protected]>

Add support for core powergating on Calxeda platforms. Initially, this supports ECX-1000 (highbank), but support will be added for ECX-2000 later.

Cc Len Brown <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Quoted 5 lines

It's not really clear where we want ARM cpuidle drivers. We're moving everything else out of arch/arm, and my understanding is Len doesn't want them in drivers/idle. It seems kind of silly to me to have the framework and drivers in 2 places. I've put this in drivers/cpuidle, but it doesn't make any difference to me.

Quoted 3 lines

Fine with me. I just don't want in in arch/arm because I'm guessing this will be shared with arm64, which in turn shares idle (and other) drivers with various powerpc, mips and x86 socs.

Applied to linux-pm.git/linux-next as v3.8 material.

Thanks,
Rafael

Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
#3 lore raw

Rafael,

Quoted 20 lines · Rafael J. Wysocki
Quoted 19 lines · Arnd Bergmann
Quoted 9 lines · Rob Herring

From: Rob Herring <[email protected]>

Add support for core powergating on Calxeda platforms. Initially, this supports ECX-1000 (highbank), but support will be added for ECX-2000 later.

Cc Len Brown <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Quoted 5 lines

It's not really clear where we want ARM cpuidle drivers. We're moving everything else out of arch/arm, and my understanding is Len doesn't want them in drivers/idle. It seems kind of silly to me to have the framework and drivers in 2 places. I've put this in drivers/cpuidle, but it doesn't make any difference to me.

Quoted 5 lines
Quoted 3 lines

Fine with me. I just don't want in in arch/arm because I'm guessing this will be shared with arm64, which in turn shares idle (and other) drivers with various powerpc, mips and x86 socs.

Applied to linux-pm.git/linux-next as v3.8 material.

We already have it in arm-soc. Since there's no maintainer listed for the directory, it didn't seem like there were any better merge paths.

-Olof

#4 lore raw
Quoted 23 lines · Olof Johansson

Rafael,

Quoted 20 lines · Rafael J. Wysocki
Quoted 19 lines · Arnd Bergmann
Quoted 9 lines · Rob Herring

From: Rob Herring <[email protected]>

Add support for core powergating on Calxeda platforms. Initially, this supports ECX-1000 (highbank), but support will be added for ECX-2000 later.

Cc Len Brown <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Quoted 5 lines

It's not really clear where we want ARM cpuidle drivers. We're moving everything else out of arch/arm, and my understanding is Len doesn't want them in drivers/idle. It seems kind of silly to me to have the framework and drivers in 2 places. I've put this in drivers/cpuidle, but it doesn't make any difference to me.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Fine with me. I just don't want in in arch/arm because I'm guessing this will be shared with arm64, which in turn shares idle (and other) drivers with various powerpc, mips and x86 socs.

Applied to linux-pm.git/linux-next as v3.8 material.

We already have it in arm-soc. Since there's no maintainer listed for the directory, it didn't seem like there were any better merge paths.

Cool, I'll drop it then.

Thanks,
Rafael

Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.