diff options
Diffstat (limited to 'arch/powerpc/kernel/setup_64.c')
-rw-r--r-- | arch/powerpc/kernel/setup_64.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c index 16278968dab6..3733de30e84d 100644 --- a/arch/powerpc/kernel/setup_64.c +++ b/arch/powerpc/kernel/setup_64.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include <linux/serial.h> | 33 | #include <linux/serial.h> |
34 | #include <linux/serial_8250.h> | 34 | #include <linux/serial_8250.h> |
35 | #include <linux/bootmem.h> | 35 | #include <linux/bootmem.h> |
36 | #include <linux/pci.h> | ||
36 | #include <asm/io.h> | 37 | #include <asm/io.h> |
37 | #include <asm/kdump.h> | 38 | #include <asm/kdump.h> |
38 | #include <asm/prom.h> | 39 | #include <asm/prom.h> |
@@ -71,7 +72,6 @@ | |||
71 | 72 | ||
72 | int have_of = 1; | 73 | int have_of = 1; |
73 | int boot_cpuid = 0; | 74 | int boot_cpuid = 0; |
74 | dev_t boot_dev; | ||
75 | u64 ppc64_pft_size; | 75 | u64 ppc64_pft_size; |
76 | 76 | ||
77 | /* Pick defaults since we might want to patch instructions | 77 | /* Pick defaults since we might want to patch instructions |
@@ -171,7 +171,7 @@ void __init setup_paca(int cpu) | |||
171 | void __init early_setup(unsigned long dt_ptr) | 171 | void __init early_setup(unsigned long dt_ptr) |
172 | { | 172 | { |
173 | /* Identify CPU type */ | 173 | /* Identify CPU type */ |
174 | identify_cpu(0); | 174 | identify_cpu(0, mfspr(SPRN_PVR)); |
175 | 175 | ||
176 | /* Assume we're on cpu 0 for now. Don't write to the paca yet! */ | 176 | /* Assume we're on cpu 0 for now. Don't write to the paca yet! */ |
177 | setup_paca(0); | 177 | setup_paca(0); |
@@ -226,8 +226,8 @@ void early_setup_secondary(void) | |||
226 | { | 226 | { |
227 | struct paca_struct *lpaca = get_paca(); | 227 | struct paca_struct *lpaca = get_paca(); |
228 | 228 | ||
229 | /* Mark enabled in PACA */ | 229 | /* Mark interrupts enabled in PACA */ |
230 | lpaca->proc_enabled = 0; | 230 | lpaca->soft_enabled = 0; |
231 | 231 | ||
232 | /* Initialize hash table for that CPU */ | 232 | /* Initialize hash table for that CPU */ |
233 | htab_initialize_secondary(); | 233 | htab_initialize_secondary(); |
@@ -392,7 +392,8 @@ void __init setup_system(void) | |||
392 | * setting up the hash table pointers. It also sets up some interrupt-mapping | 392 | * setting up the hash table pointers. It also sets up some interrupt-mapping |
393 | * related options that will be used by finish_device_tree() | 393 | * related options that will be used by finish_device_tree() |
394 | */ | 394 | */ |
395 | ppc_md.init_early(); | 395 | if (ppc_md.init_early) |
396 | ppc_md.init_early(); | ||
396 | 397 | ||
397 | /* | 398 | /* |
398 | * We can discover serial ports now since the above did setup the | 399 | * We can discover serial ports now since the above did setup the |
@@ -598,3 +599,10 @@ void __init setup_per_cpu_areas(void) | |||
598 | } | 599 | } |
599 | } | 600 | } |
600 | #endif | 601 | #endif |
602 | |||
603 | |||
604 | #ifdef CONFIG_PPC_INDIRECT_IO | ||
605 | struct ppc_pci_io ppc_pci_io; | ||
606 | EXPORT_SYMBOL(ppc_pci_io); | ||
607 | #endif /* CONFIG_PPC_INDIRECT_IO */ | ||
608 | |||