Skip to contentSkip to conversation

ARM: tegra114: cpuidle: add ARM_CPUIDLE_WFI_STATE support

PATCH New Joseph Lo 2 participants 4 messages Jan 21, 2013 – Jan 28, 2013

Subsystems (3)
lore
Share & tools
lore

Joseph Lo

author
#0 lore raw

PATCH 1/1 ARM: tegra114: cpuidle: add ARM_CPUIDLE_WFI_STATE support

Adding the generic ARM_CPUIDLE_WFI_STATE support for Tegra114.

---
 arch/arm/mach-tegra/Makefile           |  3 ++
 arch/arm/mach-tegra/cpuidle-tegra114.c | 61 ++++++++++++++++++++++++++++++++++
 arch/arm/mach-tegra/cpuidle.c          |  3 ++
 arch/arm/mach-tegra/cpuidle.h          |  6 ++++
 4 files changed, 73 insertions(+)
 create mode 100644 arch/arm/mach-tegra/cpuidle-tegra114.c
arch/arm/mach-tegra/Makefile +3 -0
index 219c2ed..1335aac 100644
@@ -34,6 +34,9 @@ obj-$(CONFIG_TEGRA_PCI)			+= pcie.o
 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)		+= board-dt-tegra20.o
 obj-$(CONFIG_ARCH_TEGRA_3x_SOC)		+= board-dt-tegra30.o
 obj-$(CONFIG_ARCH_TEGRA_114_SOC)	+= board-dt-tegra114.o
+ifeq ($(CONFIG_CPU_IDLE),y)
+obj-$(CONFIG_ARCH_TEGRA_114_SOC)	+= cpuidle-tegra114.o
+endif
 
 obj-$(CONFIG_ARCH_TEGRA_2x_SOC)		+= board-harmony-pcie.o
 
arch/arm/mach-tegra/cpuidle-tegra114.c new file +61 -0

61 lines not on this page · raw message

arch/arm/mach-tegra/cpuidle.c +3 -0
index d065139..4b744c4 100644
@@ -38,6 +38,9 @@ static int __init tegra_cpuidle_init(void)
 	case TEGRA30:
 		ret = tegra30_cpuidle_init();
 		break;
+	case TEGRA114:
+		ret = tegra114_cpuidle_init();
+		break;
 	default:
 		ret = -ENODEV;
 		break;
arch/arm/mach-tegra/cpuidle.h +6 -0
index 496204d..d733f75 100644
@@ -29,4 +29,10 @@ int tegra30_cpuidle_init(void);
 static inline int tegra30_cpuidle_init(void) { return -ENODEV; }
 #endif
 
+#ifdef CONFIG_ARCH_TEGRA_114_SOC
+int tegra114_cpuidle_init(void);
+#else
+static inline int tegra114_cpuidle_init(void) { return -ENODEV; }
+#endif
+
 #endif
Signature · 1 line
1.8.0.3
#1 lore raw

PATCH 1/1 ARM: tegra114: cpuidle: add ARM_CPUIDLE_WFI_STATE support

Quoted 1 line · Joseph Lo

Adding the generic ARM_CPUIDLE_WFI_STATE support for Tegra114.

This of course depends on Hiroshi's Tegra114 patches, right; you should explicitly point out any dependencies when posting patches.

The code changes look reasonable, but of course I'll hold off applying it until the Tegra114 support is checked in.

author
#2 lore raw

PATCH 1/1 ARM: tegra114: cpuidle: add ARM_CPUIDLE_WFI_STATE support

Quoted 8 lines · Stephen Warren
Quoted 1 line · Joseph Lo

Adding the generic ARM_CPUIDLE_WFI_STATE support for Tegra114.

This of course depends on Hiroshi's Tegra114 patches, right; you should explicitly point out any dependencies when posting patches.

The code changes look reasonable, but of course I'll hold off applying it until the Tegra114 support is checked in.

Yes, thanks for taking care.

Joseph

#3 lore raw

PATCH 1/1 ARM: tegra114: cpuidle: add ARM_CPUIDLE_WFI_STATE support

In reply to Joseph Lo
Quoted 1 line · Joseph Lo

Adding the generic ARM_CPUIDLE_WFI_STATE support for Tegra114.

I've applied this to Tegra's for-3.9/soc-t114 branch.