[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070302144007.GC12727@slug>
Date: Fri, 2 Mar 2007 14:40:07 +0000
From: Frederik Deweerdt <deweerdt@...e.fr>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-kernel@...r.kernel.org, venkatesh.pallipadi@...el.com,
abelay@...ell.com, shaohua.li@...el.com, len.brown@...el.com
Subject: [-mm patch] cpu_idle: fix build break
On Fri, Mar 02, 2007 at 03:00:26AM -0800, Andrew Morton wrote:
> +git-acpi-fix-cpuidle-borkage.patch
This attached patch might be needed too, the build breaks if
!CONFIG_HOTPLUG_CPU and CONFIG_CPU_IDLE
CC drivers/cpuidle/cpuidle.o
drivers/cpuidle/cpuidle.c: In function 'cpuidle_init':
drivers/cpuidle/cpuidle.c:272: erreur: 'cpuidle_cpu_notifier' undeclared (first use in this function)
drivers/cpuidle/cpuidle.c:272: erreur: (Each undeclared identifier is reported only once
drivers/cpuidle/cpuidle.c:272: erreur: for each function it appears in.)
make[2]: *** [drivers/cpuidle/cpuidle.o] Erreur 1
make[1]: *** [drivers/cpuidle] Erreur 2
make: *** [drivers] Erreur 2
Regards,
Frederik
Signed-off-by: Frederik Deweerdt <frederik.deweerdt@...il.com>
diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c
index dc626d9..9aa1734 100644
--- a/drivers/cpuidle/cpuidle.c
+++ b/drivers/cpuidle/cpuidle.c
@@ -269,7 +269,9 @@ static int __init cpuidle_init(void)
if (ret)
return ret;
+#ifdef CONFIG_HOTPLUG_CPU
register_hotcpu_notifier(&cpuidle_cpu_notifier);
+#endif
ret = sysdev_driver_register(&cpu_sysdev_class, &cpuidle_sysdev_driver);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists