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

login
register
mail settings
Submitter Giuliano Pochini
Date Feb. 21, 2009, 10:21 p.m.
Message ID <20090221232125.76761b7e.pochini@shiny.it>
Download mbox | patch
Permalink /patch/23522/
State Accepted, archived
Delegated to: Benjamin Herrenschmidt
Headers show

Comments

Giuliano Pochini - Feb. 21, 2009, 10:21 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

--- 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
 };