Fwd: [linux-pm] [PATCH] CPUidle: compile fix for non-x86

Rafael J. Wysocki
2008-01-30T10:18:59Z

[-- Attachment #1: Type: text/plain, Size: 41 bytes --]

Hi,

Please have a look at this.

Rafael

[-- Attachment #2: Kevin Hilman <khilman@mvista.com>: [linux-pm] [PATCH] CPUidle: compile fix for non-x86 --]
[-- Type: message/rfc822, Size: 3581 bytes --]

From: Kevin Hilman <khilman@mvista.com>
To: linux-pm@lists.linux-foundation.org
Subject: [linux-pm] [PATCH] CPUidle: compile fix for non-x86
Date: Tue, 29 Jan 2008 21:52:12 -0800
Message-ID: <871w7zn9mb.fsf@paris.hilman.org>

Wrap cpu_idle_wait() in an x86 #ifdef since it's x86 only.

Signed-off-by: Kevin Hilman <khilman@mvista.com>

diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c
index d2fabe7..4d0f9b0 100644
--- a/drivers/cpuidle/cpuidle.c
+++ b/drivers/cpuidle/cpuidle.c
@@ -82,7 +82,9 @@ void cpuidle_uninstall_idle_handler(void)
{
if (enabled_devices && (pm_idle != pm_idle_old)) {
pm_idle = pm_idle_old;
+#ifdef CONFIG_X86
cpu_idle_wait();
+#endif
}
}

_______________________________________________
linux-pm mailing list
linux-pm@lists.linux-foundation.org