aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/cpuidle.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/cpuidle.h')
-rw-r--r--include/linux/cpuidle.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h
index 7408af843b8a..93df66ea794a 100644
--- a/include/linux/cpuidle.h
+++ b/include/linux/cpuidle.h
@@ -188,7 +188,14 @@ struct cpuidle_governor {
188extern int cpuidle_register_governor(struct cpuidle_governor *gov); 188extern int cpuidle_register_governor(struct cpuidle_governor *gov);
189extern void cpuidle_unregister_governor(struct cpuidle_governor *gov); 189extern void cpuidle_unregister_governor(struct cpuidle_governor *gov);
190 190
191#ifdef CONFIG_INTEL_IDLE
192extern int intel_idle_cpu_init(int cpu);
191#else 193#else
194static inline int intel_idle_cpu_init(int cpu) { return -1; }
195#endif
196
197#else
198static inline int intel_idle_cpu_init(int cpu) { return -1; }
192 199
193static inline int cpuidle_register_governor(struct cpuidle_governor *gov) 200static inline int cpuidle_register_governor(struct cpuidle_governor *gov)
194{return 0;} 201{return 0;}