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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)
---

--- a/include/linux/cpuidle.h	2007-08-21 17:33:17.000000000 -0400
+++ b/include/linux/cpuidle.h	2007-08-21 17:30:54.000000000 -0400
@@ -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


-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux