ARM: tegra114: cpuidle: add ARM_CPUIDLE_WFI_STATE support
Subsystems (3)
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
@@ -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
@@ -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
@@ -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
PATCH 1/1 ARM: tegra114: cpuidle: add ARM_CPUIDLE_WFI_STATE support
Quoted 1 line · Joseph Lo
Adding the generic
ARM_CPUIDLE_WFI_STATEsupport 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.
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_STATEsupport 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
Stephen Warren
AppliedPATCH 1/1 ARM: tegra114: cpuidle: add ARM_CPUIDLE_WFI_STATE support
In reply to Joseph LoQuoted 1 line · Joseph Lo
Adding the generic
ARM_CPUIDLE_WFI_STATEsupport for Tegra114.
I've applied this to Tegra's for-3.9/soc-t114 branch.