Skip to contentSkip to conversation

2.5.9 per-cpu-areas ONCE AND FOR ALL

PATCH New Rusty Russell 1 participant 1 message Apr 23, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.5.9 per-cpu-areas ONCE AND FOR ALL

This is the correct patch. Do NOT apply any lesser imitations!

Thanks,
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

init/main.c +2 -7
diff -urN -I \$.*\$ --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal linux-2.5.9/init/main.c working-2.5.9-percpu/init/main.c
@@ -274,12 +274,7 @@
 static inline void setup_per_cpu_areas(void)
 {
 }
-
-static inline void setup_per_cpu_areas(void)
-{
-}
-
-#else
+#else /* CONFIG_SMP... */
 
 #ifdef __GENERIC_PER_CPU
 unsigned long __per_cpu_offset[NR_CPUS];
@@ -315,7 +310,7 @@
 	smp_commence();
 }
 
-#endif
+#endif /* CONFIG_SMP */
 
 /*
  * We need to finalize in a non-__init function or else race conditions