Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6b2c676b authored by Len Brown's avatar Len Brown
Browse files

cpuidle: fail to register if !CONFIG_CPU_IDLE



Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent e40152ee
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -137,16 +137,16 @@ extern void cpuidle_disable_device(struct cpuidle_device *dev);
#else
#else


static inline int cpuidle_register_driver(struct cpuidle_driver *drv)
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 void cpuidle_unregister_driver(struct cpuidle_driver *drv) { }
static inline int cpuidle_register_device(struct cpuidle_device *dev)
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_unregister_device(struct cpuidle_device *dev) { }


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


#endif
#endif