Skip to contentSkip to conversation

cpuidle: Add Kconfig.arm and move calxeda, kirkwood and zynq

PATCH In review [email protected] 3 participants 6 messages Jul 3, 2013 – Jul 16, 2013 CPU idle time management framework

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 cpuidle: Add Kconfig.arm and move calxeda, kirkwood and zynq

From: Sahara <[email protected]>

This patch adds Kconfig.arm for cpuidle drivers for ARM. And, this also moves calxeda, kirkwood and zynq to Kconfig.arm. Like cpufreq menu, "CPU Idle" menu is added to drivers/cpuidle/Kconfig.

---
 drivers/cpuidle/Kconfig     |   19 +++++++------------
 drivers/cpuidle/Kconfig.arm |   21 +++++++++++++++++++++
 drivers/cpuidle/Makefile    |    8 +++++---
 3 files changed, 33 insertions(+), 15 deletions(-)
 create mode 100644 drivers/cpuidle/Kconfig.arm
drivers/cpuidle/Kconfig +7 -12
index 81de5d9..b3fb81d 100644
@@ -1,5 +1,6 @@
+menu "CPU Idle"
 
-menuconfig CPU_IDLE
+config CPU_IDLE
 	bool "CPU idle PM support"
 	default y if ACPI || PPC_PSERIES
 	select CPU_IDLE_GOV_LADDER if (!NO_HZ && !NO_HZ_IDLE)
@@ -29,19 +30,13 @@ config CPU_IDLE_GOV_MENU
 	bool "Menu governor (for tickless system)"
 	default y
 
-config CPU_IDLE_CALXEDA
-	bool "CPU Idle Driver for Calxeda processors"
-	depends on ARCH_HIGHBANK
-	help
-	  Select this to enable cpuidle on Calxeda processors.
-
-config CPU_IDLE_ZYNQ
-	bool "CPU Idle Driver for Xilinx Zynq processors"
-	depends on ARCH_ZYNQ
-	help
-	  Select this to enable cpuidle on Xilinx Zynq processors.
+menu "ARM CPU Idle Drivers"
+depends on ARM
+source "drivers/cpuidle/Kconfig.arm"
+endmenu
 
 endif
 
 config ARCH_NEEDS_CPU_IDLE_COUPLED
 	def_bool n
+endmenu
drivers/cpuidle/Kconfig.arm new file +21 -0
new file mode 100644
index 0000000..df69259
@@ -0,0 +1,21 @@
+#
+# ARM CPU Idle drivers
+#
+
+config ARM_HIGHBANK_CPUIDLE
+	bool "CPU Idle Driver for Calxeda processors"
+	depends on ARCH_HIGHBANK
+	help
+	  Select this to enable cpuidle on Calxeda processors.
+
+config ARM_KIRKWOOD_CPUIDLE
+	bool "CPU Idle Driver for Marvell Kirkwood SoCs"
+	depends on ARCH_KIRKWOOD
+	help
+	  This adds the CPU Idle driver for Marvell Kirkwood SoCs.
+
+config ARM_ZYNQ_CPUIDLE
+	bool "CPU Idle Driver for Xilinx Zynq processors"
+	depends on ARCH_ZYNQ
+	help
+	  Select this to enable cpuidle on Xilinx Zynq processors.
drivers/cpuidle/Makefile +5 -3
index 8767a7b..77cf767 100644
@@ -5,6 +5,8 @@
 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
-obj-$(CONFIG_ARCH_KIRKWOOD) += cpuidle-kirkwood.o
-obj-$(CONFIG_CPU_IDLE_ZYNQ) += cpuidle-zynq.o
+##################################################################################
+# ARM SoC drivers
+obj-$(CONFIG_ARM_HIGHBANK_CPUIDLE)	+= cpuidle-calxeda.o
+obj-$(CONFIG_ARM_KIRKWOOD_CPUIDLE)	+= cpuidle-kirkwood.o
+obj-$(CONFIG_ARM_ZYNQ_CPUIDLE)		+= cpuidle-zynq.o
Signature · 1 line
1.7.1
#1 lore raw
Quoted 7 lines · On Wednesday, July 03, 2013 05:49:55 PM [email protected] wrote:

From: Sahara <[email protected]>

This patch adds Kconfig.arm for cpuidle drivers for ARM. And, this also moves calxeda, kirkwood and zynq to Kconfig.arm. Like cpufreq menu, "CPU Idle" menu is added to drivers/cpuidle/Kconfig.

Daniel: Yes, no, maybe?

Rafael

Quoted 88 lines
---
 drivers/cpuidle/Kconfig     |   19 +++++++------------
 drivers/cpuidle/Kconfig.arm |   21 +++++++++++++++++++++
 drivers/cpuidle/Makefile    |    8 +++++---
 3 files changed, 33 insertions(+), 15 deletions(-)
 create mode 100644 drivers/cpuidle/Kconfig.arm
drivers/cpuidle/Kconfig +7 -12
index 81de5d9..b3fb81d 100644
@@ -1,5 +1,6 @@
+menu "CPU Idle"
 
-menuconfig CPU_IDLE
+config CPU_IDLE
 	bool "CPU idle PM support"
 	default y if ACPI || PPC_PSERIES
 	select CPU_IDLE_GOV_LADDER if (!NO_HZ && !NO_HZ_IDLE)
@@ -29,19 +30,13 @@ config CPU_IDLE_GOV_MENU
 	bool "Menu governor (for tickless system)"
 	default y
 
-config CPU_IDLE_CALXEDA
-	bool "CPU Idle Driver for Calxeda processors"
-	depends on ARCH_HIGHBANK
-	help
-	  Select this to enable cpuidle on Calxeda processors.
-
-config CPU_IDLE_ZYNQ
-	bool "CPU Idle Driver for Xilinx Zynq processors"
-	depends on ARCH_ZYNQ
-	help
-	  Select this to enable cpuidle on Xilinx Zynq processors.
+menu "ARM CPU Idle Drivers"
+depends on ARM
+source "drivers/cpuidle/Kconfig.arm"
+endmenu
 
 endif
 
 config ARCH_NEEDS_CPU_IDLE_COUPLED
 	def_bool n
+endmenu
drivers/cpuidle/Kconfig.arm new file +21 -0
new file mode 100644
index 0000000..df69259
@@ -0,0 +1,21 @@
+#
+# ARM CPU Idle drivers
+#
+
+config ARM_HIGHBANK_CPUIDLE
+	bool "CPU Idle Driver for Calxeda processors"
+	depends on ARCH_HIGHBANK
+	help
+	  Select this to enable cpuidle on Calxeda processors.
+
+config ARM_KIRKWOOD_CPUIDLE
+	bool "CPU Idle Driver for Marvell Kirkwood SoCs"
+	depends on ARCH_KIRKWOOD
+	help
+	  This adds the CPU Idle driver for Marvell Kirkwood SoCs.
+
+config ARM_ZYNQ_CPUIDLE
+	bool "CPU Idle Driver for Xilinx Zynq processors"
+	depends on ARCH_ZYNQ
+	help
+	  Select this to enable cpuidle on Xilinx Zynq processors.
drivers/cpuidle/Makefile +5 -3
index 8767a7b..77cf767 100644
@@ -5,6 +5,8 @@
 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
-obj-$(CONFIG_ARCH_KIRKWOOD) += cpuidle-kirkwood.o
-obj-$(CONFIG_CPU_IDLE_ZYNQ) += cpuidle-zynq.o
+##################################################################################
+# ARM SoC drivers
+obj-$(CONFIG_ARM_HIGHBANK_CPUIDLE)	+= cpuidle-calxeda.o
+obj-$(CONFIG_ARM_KIRKWOOD_CPUIDLE)	+= cpuidle-kirkwood.o
+obj-$(CONFIG_ARM_ZYNQ_CPUIDLE)		+= cpuidle-zynq.o
Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
#2 lore raw
Quoted 10 lines · Rafael J. Wysocki
Quoted 7 lines · On Wednesday, July 03, 2013 05:49:55 PM [email protected] wrote:

From: Sahara <[email protected]>

This patch adds Kconfig.arm for cpuidle drivers for ARM. And, this also moves calxeda, kirkwood and zynq to Kconfig.arm. Like cpufreq menu, "CPU Idle" menu is added to drivers/cpuidle/Kconfig.

Daniel: Yes, no, maybe?

Actually I picked the patch in my tree, I was waiting for the -rc1 before sending the pull request.

I have 3 other patches on top of it I want to send for review before sending the pull request (as you take 1PR/week).

Thanks
-- Daniel

Signature · 5 lines
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
#3 lore raw
Quoted 10 lines · Daniel Lezcano
Quoted 9 lines · Rafael J. Wysocki
Quoted 7 lines · On Wednesday, July 03, 2013 05:49:55 PM [email protected] wrote:

From: Sahara <[email protected]>

This patch adds Kconfig.arm for cpuidle drivers for ARM. And, this also moves calxeda, kirkwood and zynq to Kconfig.arm. Like cpufreq menu, "CPU Idle" menu is added to drivers/cpuidle/Kconfig.

Quoted 7 lines
Quoted 1 line

Daniel: Yes, no, maybe?

Actually I picked the patch in my tree, I was waiting for the -rc1 before sending the pull request.

I have 3 other patches on top of it I want to send for review before sending the pull request (as you take 1PR/week).

OK, I'm dropping it then.

I'll assume you'll handle ARM-specific changes from now on, so I'm going to ignore them going forward.

Thanks,
Rafael

Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
#4 lore raw
Quoted 16 lines · Rafael J. Wysocki
Quoted 15 lines · Daniel Lezcano
Quoted 10 lines · Rafael J. Wysocki
Quoted 7 lines · On Wednesday, July 03, 2013 05:49:55 PM [email protected] wrote:

From: Sahara <[email protected]>

This patch adds Kconfig.arm for cpuidle drivers for ARM. And, this also moves calxeda, kirkwood and zynq to Kconfig.arm. Like cpufreq menu, "CPU Idle" menu is added to drivers/cpuidle/Kconfig.

Daniel: Yes, no, maybe?

Actually I picked the patch in my tree, I was waiting for the -rc1 before sending the pull request.

Quoted 7 lines
Quoted 2 lines

I have 3 other patches on top of it I want to send for review before sending the pull request (as you take 1PR/week).

OK, I'm dropping it then.

I'll assume you'll handle ARM-specific changes from now on, so I'm going to ignore them going forward.

Ok, please ignore my previous PR, it was based on your pm-next branch which has this patch.

I rebased my branch adding this patch and I will send you another updated PR.

Thanks
-- Daniel

Signature · 5 lines
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
#5 lore raw
Quoted 22 lines · Daniel Lezcano
Quoted 21 lines · Rafael J. Wysocki
Quoted 10 lines · Daniel Lezcano
Quoted 9 lines · Rafael J. Wysocki
Quoted 7 lines · On Wednesday, July 03, 2013 05:49:55 PM [email protected] wrote:

From: Sahara <[email protected]>

This patch adds Kconfig.arm for cpuidle drivers for ARM. And, this also moves calxeda, kirkwood and zynq to Kconfig.arm. Like cpufreq menu, "CPU Idle" menu is added to drivers/cpuidle/Kconfig.

Quoted 7 lines
Quoted 1 line

Daniel: Yes, no, maybe?

Actually I picked the patch in my tree, I was waiting for the -rc1 before sending the pull request.

I have 3 other patches on top of it I want to send for review before sending the pull request (as you take 1PR/week).

OK, I'm dropping it then.

Quoted 8 lines
Quoted 2 lines

I'll assume you'll handle ARM-specific changes from now on, so I'm going to ignore them going forward.

Ok, please ignore my previous PR, it was based on your pm-next branch which has this patch.

I rebased my branch adding this patch and I will send you another updated PR.

OK, thanks a lot!

Rafael

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