Commit 6a7e4064 authored by Geoff Levand's avatar Geoff Levand Committed by Benjamin Herrenschmidt

powerpc: Move boot_paca into early_setup

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: default avatarGeoff Levand <geoff@infradead.org>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 69fde021
...@@ -167,7 +167,6 @@ struct paca_struct { ...@@ -167,7 +167,6 @@ struct paca_struct {
}; };
extern struct paca_struct *paca; 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 initialise_paca(struct paca_struct *new_paca, int cpu);
extern void setup_paca(struct paca_struct *new_paca); extern void setup_paca(struct paca_struct *new_paca);
extern void allocate_pacas(void); extern void allocate_pacas(void);
......
...@@ -120,8 +120,6 @@ struct slb_shadow slb_shadow[] __cacheline_aligned = { ...@@ -120,8 +120,6 @@ struct slb_shadow slb_shadow[] __cacheline_aligned = {
struct paca_struct *paca; struct paca_struct *paca;
EXPORT_SYMBOL(paca); EXPORT_SYMBOL(paca);
struct paca_struct boot_paca;
void __init initialise_paca(struct paca_struct *new_paca, int cpu) void __init initialise_paca(struct paca_struct *new_paca, int cpu)
{ {
/* The TOC register (GPR2) points 32kB into the TOC, so that 64kB /* The TOC register (GPR2) points 32kB into the TOC, so that 64kB
......
...@@ -177,6 +177,8 @@ early_param("smt-enabled", early_smt_enabled); ...@@ -177,6 +177,8 @@ early_param("smt-enabled", early_smt_enabled);
void __init early_setup(unsigned long dt_ptr) void __init early_setup(unsigned long dt_ptr)
{ {
static __initdata struct paca_struct boot_paca;
/* -------- printk is _NOT_ safe to use here ! ------- */ /* -------- printk is _NOT_ safe to use here ! ------- */
/* Identify CPU type */ /* Identify CPU type */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment