summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/pasemi/pasemi.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/platforms/pasemi/pasemi.h')
-rw-r--r--arch/powerpc/platforms/pasemi/pasemi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/pasemi/pasemi.h b/arch/powerpc/platforms/pasemi/pasemi.h
index 516acabb4e9..c96127b029b 100644
--- a/arch/powerpc/platforms/pasemi/pasemi.h
+++ b/arch/powerpc/platforms/pasemi/pasemi.h
@@ -16,8 +16,14 @@ extern void idle_doze(void);
/* Restore astate to last set */
#ifdef CONFIG_PPC_PASEMI_CPUFREQ
+extern int check_astate(void);
extern void restore_astate(int cpu);
#else
+static inline int check_astate(void)
+{
+ /* Always return >0 so we never power save */
+ return 1;
+}
static inline void restore_astate(int cpu)
{
}