aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2010-05-11 16:50:52 -0400
committerLen Brown <len.brown@intel.com>2010-05-27 01:56:24 -0400
commit6b2c676bf32be91f43215d5874c07c1becaba013 (patch)
treecd1426861e56419c45a7d7230de95c0340b4f819
parente40152ee1e1c7a63f4777791863215e3faa37a86 (diff)
cpuidle: fail to register if !CONFIG_CPU_IDLE
Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r--include/linux/cpuidle.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h
index dcf77fa826b5..f5e6480dc16f 100644
--- a/include/linux/cpuidle.h
+++ b/include/linux/cpuidle.h
@@ -137,16 +137,16 @@ extern void cpuidle_disable_device(struct cpuidle_device *dev);
137#else 137#else
138 138
139static inline int cpuidle_register_driver(struct cpuidle_driver *drv) 139static inline int cpuidle_register_driver(struct cpuidle_driver *drv)
140{return 0;} 140{return -ENODEV; }
141static inline void cpuidle_unregister_driver(struct cpuidle_driver *drv) { } 141static inline void cpuidle_unregister_driver(struct cpuidle_driver *drv) { }
142static inline int cpuidle_register_device(struct cpuidle_device *dev) 142static inline int cpuidle_register_device(struct cpuidle_device *dev)
143{return 0;} 143{return -ENODEV; }
144static inline void cpuidle_unregister_device(struct cpuidle_device *dev) { } 144static inline void cpuidle_unregister_device(struct cpuidle_device *dev) { }
145 145
146static inline void cpuidle_pause_and_lock(void) { } 146static inline void cpuidle_pause_and_lock(void) { }
147static inline void cpuidle_resume_and_unlock(void) { } 147static inline void cpuidle_resume_and_unlock(void) { }
148static inline int cpuidle_enable_device(struct cpuidle_device *dev) 148static inline int cpuidle_enable_device(struct cpuidle_device *dev)
149{return 0;} 149{return -ENODEV; }
150static inline void cpuidle_disable_device(struct cpuidle_device *dev) { } 150static inline void cpuidle_disable_device(struct cpuidle_device *dev) { }
151 151
152#endif 152#endif