summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2004-09-07 17:47:10 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-09-07 17:47:10 -0700
commitf50dda06dc514767ca26233e6bf51e6cb0b408c9 (patch)
tree148fe95370783df1273f7bd163bd6b93a1307029 /include
parent957ec2fab62f7e3318b393966858f13e48875b35 (diff)
[PATCH] ppc64: cut down paca footprint
The paca currently contains an iseries only structure which is quite large (~1kB). The following patch removes this overhead on pseries and g5 kernels. Since the paca is no longer required to be page aligned, remove it from the page aligned section. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-ppc64/paca.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-ppc64/paca.h b/include/asm-ppc64/paca.h
index bba0775bb415..947191f3f47a 100644
--- a/include/asm-ppc64/paca.h
+++ b/include/asm-ppc64/paca.h
@@ -16,6 +16,7 @@
* 2 of the License, or (at your option) any later version.
*/
+#include <linux/config.h>
#include <asm/types.h>
#include <asm/iSeries/ItLpPaca.h>
#include <asm/iSeries/ItLpRegSave.h>
@@ -104,7 +105,9 @@ struct paca_struct {
* The lppaca is also used on POWER5 pSeries boxes.
*/
struct ItLpPaca lppaca __attribute__((aligned(0x80)));
+#ifdef CONFIG_PPC_ISERIES
struct ItLpRegSave reg_save;
+#endif
};
#endif /* _PPC64_PACA_H */