CPU hotplug /sys entries are missing on 2.6.28 [PATCH]

Submitted by Giuliano Pochini on Feb. 22, 2009, 12:17 p.m.

Details

Message ID 20090222131746.9a80b647.pochini@shiny.it
State Accepted, archived
Delegated to: Benjamin Herrenschmidt
Headers show

Commit Message

Giuliano Pochini Feb. 22, 2009, 12:17 p.m.
On Wed, 18 Feb 2009 22:18:21 +0100
Giuliano Pochini <pochini@shiny.it> wrote:

> /sys/devices/system/cpu/cpu*/online don't exist anymore.

I think I found the bug. Is this patch ok ?


Signed-off-by: Giuliano Pochini <pochini@shiny.it>




--
Giuliano.

Patch hide | download patch | download mbox

--- linux-2.6.29-rc5/arch/powerpc/platforms/powermac/setup.c__orig	2009-02-14 00:31:30.000000000 +0100
+++ linux-2.6.29-rc5/arch/powerpc/platforms/powermac/setup.c	2009-02-21 22:44:14.000000000 +0100
@@ -746,4 +746,7 @@  define_machine(powermac) {
 #if defined(CONFIG_HOTPLUG_CPU) && defined(CONFIG_PPC64)
 	.cpu_die		= pmac_cpu_die,
 #endif
+#if defined(CONFIG_HOTPLUG_CPU) && defined(CONFIG_PPC32)
+	.cpu_die		= generic_mach_cpu_die,
+#endif
 };