Skip to content

Commit

Permalink
cpuidle: fail to register if !CONFIG_CPU_IDLE
Browse files Browse the repository at this point in the history
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Len Brown committed May 27, 2010
1 parent e40152e commit 6b2c676
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/linux/cpuidle.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,16 @@ extern void cpuidle_disable_device(struct cpuidle_device *dev);
#else

static inline int cpuidle_register_driver(struct cpuidle_driver *drv)
{return 0;}
{return -ENODEV; }
static inline void cpuidle_unregister_driver(struct cpuidle_driver *drv) { }
static inline int cpuidle_register_device(struct cpuidle_device *dev)
{return 0;}
{return -ENODEV; }
static inline void cpuidle_unregister_device(struct cpuidle_device *dev) { }

static inline void cpuidle_pause_and_lock(void) { }
static inline void cpuidle_resume_and_unlock(void) { }
static inline int cpuidle_enable_device(struct cpuidle_device *dev)
{return 0;}
{return -ENODEV; }
static inline void cpuidle_disable_device(struct cpuidle_device *dev) { }

#endif
Expand Down

0 comments on commit 6b2c676

Please sign in to comment.