powerpc: Move boot_paca into early_setup
authorGeoff Levand <geoff@infradead.org>
Wed, 13 Feb 2013 17:03:16 +0000 (17:03 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 15 Feb 2013 05:54:48 +0000 (16:54 +1100)
The powerpc boot_paca symbol is now only used within the
early_setup() routine, so move it from its global definition
into early_setup().

Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/paca.h
arch/powerpc/kernel/paca.c
arch/powerpc/kernel/setup_64.c

index c47d687ab01beb8e641472b604a8fad4794785d8..4b74c6c9d82a3a2eb4954c347b886e0f00a732c3 100644 (file)
@@ -167,7 +167,6 @@ struct paca_struct {
 };
 
 extern struct paca_struct *paca;
-extern __initdata struct paca_struct boot_paca;
 extern void initialise_paca(struct paca_struct *new_paca, int cpu);
 extern void setup_paca(struct paca_struct *new_paca);
 extern void allocate_pacas(void);
index cd6da855090c6661310bc2321cd9f33554a52170..f8f24685f10ac210cab7077e14fb74b20f5288f9 100644 (file)
@@ -120,8 +120,6 @@ struct slb_shadow slb_shadow[] __cacheline_aligned = {
 struct paca_struct *paca;
 EXPORT_SYMBOL(paca);
 
-struct paca_struct boot_paca;
-
 void __init initialise_paca(struct paca_struct *new_paca, int cpu)
 {
        /* The TOC register (GPR2) points 32kB into the TOC, so that 64kB
index 6da881b35dacce0aede124897342a3f5ed1b9a6c..f2514e13062bc24ffdf83d9e9178623357ba9bfc 100644 (file)
@@ -177,6 +177,8 @@ early_param("smt-enabled", early_smt_enabled);
 
 void __init early_setup(unsigned long dt_ptr)
 {
+       static __initdata struct paca_struct boot_paca;
+
        /* -------- printk is _NOT_ safe to use here ! ------- */
 
        /* Identify CPU type */