patch-2.4.11-dontuse linux/arch/i386/kernel/setup.c

Next file: linux/arch/i386/kernel/smp.c
Previous file: linux/arch/i386/kernel/process.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.10/linux/arch/i386/kernel/setup.c linux/arch/i386/kernel/setup.c
@@ -2422,6 +2422,10 @@
 		if (!(cpu_online_map & (1<<n)))
 			continue;
 #endif
+		/* Stupid hack */
+		if (p - buffer > (3*PAGE_SIZE)/4)
+			break;
+
 		p += sprintf(p,"processor\t: %d\n"
 			"vendor_id\t: %s\n"
 			"cpu family\t: %d\n"
@@ -2479,7 +2483,7 @@
 	return p - buffer;
 }
 
-static unsigned long cpu_initialized __initdata = 0;
+unsigned long cpu_initialized __initdata = 0;
 
 /*
  * cpu_init() initializes state that is per-CPU. Some data is already

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)