* [PATCH 6/6] CPUIDLE: load ACPI properly when CPUIDLE is disabled
@ 2007-08-21 22:27 Adam Belay
0 siblings, 0 replies; only message in thread
From: Adam Belay @ 2007-08-21 22:27 UTC (permalink / raw)
To: Brown, Len; +Cc: linux acpi, linux-pm, Venki Pallipadi, Shaohua Li
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-08-21 22:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-21 22:27 [PATCH 6/6] CPUIDLE: load ACPI properly when CPUIDLE is disabled Adam Belay
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox