Skip to contentSkip to conversation

CPUIDLE: load ACPI properly when CPUIDLE is disabled

PATCH New Adam Belay 1 participant 1 message Aug 21, 2007

Subsystems (2)
lore
Share & tools
lore

Adam Belay

author
#0 lore raw

PATCH 6/6 CPUIDLE: load ACPI properly when CPUIDLE is disabled

This patch changes the registration return codes for when CPUIDLE support is not compiled into the kernel. As a result, the ACPI processor driver will load properly even if CPUIDLE is unavailable. However, it may be possible to cleanup the ACPI processor driver further and eliminate some dead code paths.

Please Apply,
Adam

Change Summary:

 cpuidle.h |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

---

include/linux/cpuidle.h +3 -3
@@ -132,16 +132,16 @@
 #else
 
 static inline int cpuidle_register_driver(struct cpuidle_driver *drv)
-{return -EIO;}
+{return 0;}
 static inline void cpuidle_unregister_driver(struct cpuidle_driver *drv) { }
 static inline int cpuidle_register_device(struct cpuidle_device *dev)
-{return -EIO;}
+{return 0;}
 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 -EIO;}
+{return 0;}
 static inline void cpuidle_disable_device(struct cpuidle_device *dev) { }
 
 #endif