Thread (1 message) 1 message, 1 author, 2015-03-17
DORMANTno replies

[PATCH v16 04/11] ARM: cpuidle: Add cpuidle support for QCOM cpus

From: Lina Iyer <hidden>
Date: 2015-03-17 22:33:44
Also in: linux-arm-kernel, linux-arm-msm, linux-pm
Subsystem: arm port, cpu idle time management framework, the rest · Maintainers: Russell King, "Rafael J. Wysocki", Daniel Lezcano, Linus Torvalds

Register cpuidle ops for Krait Processor Sub-System. Supports v1 and v2
versions of KPSS.

Define ARM_QCOM_CPUIDLE config item to enable cpuidle support.

Cc: Stephen Boyd <redacted>
Cc: Arnd Bergmann <redacted>
Cc: Kevin Hilman <redacted>
Cc: Daniel Lezcano <redacted>
Signed-off-by: Lina Iyer <redacted>
---
 arch/arm/include/asm/cpuidle_ops.h | 5 +++++
 drivers/cpuidle/Kconfig.arm        | 7 +++++++
 2 files changed, 12 insertions(+)
diff --git a/arch/arm/include/asm/cpuidle_ops.h b/arch/arm/include/asm/cpuidle_ops.h
index be0a612..adc8874 100644
--- a/arch/arm/include/asm/cpuidle_ops.h
+++ b/arch/arm/include/asm/cpuidle_ops.h
@@ -1,3 +1,8 @@
 /*
  * List of cpuidle operations
  */
+
+#if IS_ENABLED(CONFIG_ARM_QCOM_CPUIDLE)
+CPUIDLE_OPS(qcom_kpss_v1)
+CPUIDLE_OPS(qcom_kpss_v2)
+#endif
diff --git a/drivers/cpuidle/Kconfig.arm b/drivers/cpuidle/Kconfig.arm
index 1ab9a48..b1494acb 100644
--- a/drivers/cpuidle/Kconfig.arm
+++ b/drivers/cpuidle/Kconfig.arm
@@ -75,3 +75,10 @@ config ARM_MVEBU_V7_CPUIDLE
 	depends on ARCH_MVEBU
 	help
 	  Select this to enable cpuidle on Armada 370, 38x and XP processors.
+
+config ARM_QCOM_CPUIDLE
+	bool "CPU Idle Driver for QCOM processors"
+	depends on ARCH_QCOM
+	select ARM_CPUIDLE
+	help
+	  Select this to enable cpuidle on QCOM processors.
-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help