From 9ca84c0c18f9e0435b8e7bd241a2662484165271 Mon Sep 17 00:00:00 2001 From: Scott Williams Date: Thu, 21 Jul 2011 17:26:07 -0700 Subject: ARM: tegra: Prevent LP2 if request is less than target residency Change-Id: Icc7409b611439ba94ec504579c00ab9227c9a857 Signed-off-by: Scott Williams DW: Split into logical changes Signed-off-by: Dan Willemsen Rebase-Id: R4b56e98c821627de480a67c241363608ebfc2f07 --- arch/arm/mach-tegra/cpuidle.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'arch/arm/mach-tegra/cpuidle.h') diff --git a/arch/arm/mach-tegra/cpuidle.h b/arch/arm/mach-tegra/cpuidle.h index c0fbb45a0f38..8f17ba66aa85 100644 --- a/arch/arm/mach-tegra/cpuidle.h +++ b/arch/arm/mach-tegra/cpuidle.h @@ -27,6 +27,8 @@ void tegra2_idle_lp2(struct cpuidle_device *dev, struct cpuidle_state *state); void tegra2_cpu_idle_stats_lp2_ready(unsigned int cpu); void tegra2_cpu_idle_stats_lp2_time(unsigned int cpu, s64 us); +bool tegra2_lp2_is_allowed(struct cpuidle_device *dev, + struct cpuidle_state *state); #ifdef CONFIG_DEBUG_FS int tegra2_lp2_debug_show(struct seq_file *s, void *data); #endif @@ -54,6 +56,14 @@ static inline void tegra_idle_lp2(struct cpuidle_device *dev, #endif } +static inline bool tegra_lp2_is_allowed(struct cpuidle_device *dev, + struct cpuidle_state *state) +{ +#ifdef CONFIG_ARCH_TEGRA_2x_SOC + return tegra2_lp2_is_allowed(dev, state); +#endif +} + #ifdef CONFIG_DEBUG_FS static inline int tegra_lp2_debug_show(struct seq_file *s, void *data) { -- cgit v1.2.3