[PATCH] ppc64: reduce paca[] where possible

From: Anton Blanchard
Date: Tue Jan 11 2005 - 09:32:12 EST



Hi,

On UP builds we include lots of spare pacas. Lets get rid of them and
save some space. Also catch the small SMP case.

Anton

Signed-off-by: Anton Blanchard <anton@xxxxxxxxx>

diff -puN arch/ppc64/kernel/pacaData.c~reduce_paca arch/ppc64/kernel/pacaData.c
--- foobar2/arch/ppc64/kernel/pacaData.c~reduce_paca 2005-01-12 00:34:29.225334524 +1100
+++ foobar2-anton/arch/ppc64/kernel/pacaData.c 2005-01-12 00:34:29.244480855 +1100
@@ -78,13 +78,16 @@ struct paca_struct paca[] = {
#else
PACAINITDATA( 0, 1, NULL, STAB0_PHYS_ADDR, STAB0_VIRT_ADDR),
#endif
+#if NR_CPUS > 1
PACAINITDATA( 1, 0, NULL, 0, 0),
PACAINITDATA( 2, 0, NULL, 0, 0),
PACAINITDATA( 3, 0, NULL, 0, 0),
+#if NR_CPUS > 4
PACAINITDATA( 4, 0, NULL, 0, 0),
PACAINITDATA( 5, 0, NULL, 0, 0),
PACAINITDATA( 6, 0, NULL, 0, 0),
PACAINITDATA( 7, 0, NULL, 0, 0),
+#if NR_CPUS > 8
PACAINITDATA( 8, 0, NULL, 0, 0),
PACAINITDATA( 9, 0, NULL, 0, 0),
PACAINITDATA(10, 0, NULL, 0, 0),
@@ -209,4 +212,7 @@ struct paca_struct paca[] = {
PACAINITDATA(127, 0, NULL, 0, 0),
#endif
#endif
+#endif
+#endif
+#endif
};
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/