Linux ACPI
 help / color / mirror / Atom feed
From: Adam Belay <abelay@novell.com>
To: Brown@vger.kernel.org, Len <len.brown@intel.com>
Cc: linux acpi <linux-acpi@vger.kernel.org>,
	linux-pm@lists.linux-foundation.org,
	Venki Pallipadi <venkatesh.pallipadi@intel.com>,
	Shaohua Li <shaohua.li@intel.com>
Subject: [PATCH 6/6] CPUIDLE: load ACPI properly when CPUIDLE is disabled
Date: Tue, 21 Aug 2007 18:27:07 -0400	[thread overview]
Message-ID: <1187735227.7199.56.camel@callisto.site> (raw)

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



                 reply	other threads:[~2007-08-21 22:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1187735227.7199.56.camel@callisto.site \
    --to=abelay@novell.com \
    --cc=Brown@vger.kernel.org \
    --cc=len.brown@intel.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=shaohua.li@intel.com \
    --cc=venkatesh.pallipadi@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox