diff options
Diffstat (limited to 'arch/powerpc/kernel')
| -rw-r--r-- | arch/powerpc/kernel/Makefile | 14 | ||||
| -rw-r--r-- | arch/powerpc/kernel/cpu_setup_44x.S | 6 | ||||
| -rw-r--r-- | arch/powerpc/kernel/irq.c | 25 | ||||
| -rw-r--r-- | arch/powerpc/kernel/process.c | 2 | ||||
| -rw-r--r-- | arch/powerpc/kernel/vdso.c | 2 |
5 files changed, 2 insertions, 47 deletions
diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile index 1a4094704b1f..64f5948ebc9d 100644 --- a/arch/powerpc/kernel/Makefile +++ b/arch/powerpc/kernel/Makefile | |||
| @@ -59,8 +59,6 @@ obj64-$(CONFIG_HIBERNATION) += swsusp_asm64.o | |||
| 59 | obj-$(CONFIG_MODULES) += module.o module_$(CONFIG_WORD_SIZE).o | 59 | obj-$(CONFIG_MODULES) += module.o module_$(CONFIG_WORD_SIZE).o |
| 60 | obj-$(CONFIG_44x) += cpu_setup_44x.o | 60 | obj-$(CONFIG_44x) += cpu_setup_44x.o |
| 61 | 61 | ||
| 62 | ifeq ($(CONFIG_PPC_MERGE),y) | ||
| 63 | |||
| 64 | extra-$(CONFIG_PPC_STD_MMU) := head_32.o | 62 | extra-$(CONFIG_PPC_STD_MMU) := head_32.o |
| 65 | extra-$(CONFIG_PPC64) := head_64.o | 63 | extra-$(CONFIG_PPC64) := head_64.o |
| 66 | extra-$(CONFIG_40x) := head_40x.o | 64 | extra-$(CONFIG_40x) := head_40x.o |
| @@ -100,12 +98,6 @@ ifneq ($(CONFIG_PPC_INDIRECT_IO),y) | |||
| 100 | obj-y += iomap.o | 98 | obj-y += iomap.o |
| 101 | endif | 99 | endif |
| 102 | 100 | ||
| 103 | else | ||
| 104 | # stuff used from here for ARCH=ppc | ||
| 105 | smpobj-$(CONFIG_SMP) += smp.o | ||
| 106 | |||
| 107 | endif | ||
| 108 | |||
| 109 | obj-$(CONFIG_PPC64) += $(obj64-y) | 101 | obj-$(CONFIG_PPC64) += $(obj64-y) |
| 110 | 102 | ||
| 111 | extra-$(CONFIG_PPC_FPU) += fpu.o | 103 | extra-$(CONFIG_PPC_FPU) += fpu.o |
| @@ -121,9 +113,6 @@ PHONY += systbl_chk | |||
| 121 | systbl_chk: $(src)/systbl_chk.sh $(obj)/systbl_chk.i | 113 | systbl_chk: $(src)/systbl_chk.sh $(obj)/systbl_chk.i |
| 122 | $(call cmd,systbl_chk) | 114 | $(call cmd,systbl_chk) |
| 123 | 115 | ||
| 124 | |||
| 125 | ifeq ($(CONFIG_PPC_MERGE),y) | ||
| 126 | |||
| 127 | $(obj)/built-in.o: prom_init_check | 116 | $(obj)/built-in.o: prom_init_check |
| 128 | 117 | ||
| 129 | quiet_cmd_prom_init_check = CALL $< | 118 | quiet_cmd_prom_init_check = CALL $< |
| @@ -133,7 +122,4 @@ PHONY += prom_init_check | |||
| 133 | prom_init_check: $(src)/prom_init_check.sh $(obj)/prom_init.o | 122 | prom_init_check: $(src)/prom_init_check.sh $(obj)/prom_init.o |
| 134 | $(call cmd,prom_init_check) | 123 | $(call cmd,prom_init_check) |
| 135 | 124 | ||
| 136 | endif | ||
| 137 | |||
| 138 | |||
| 139 | clean-files := vmlinux.lds | 125 | clean-files := vmlinux.lds |
diff --git a/arch/powerpc/kernel/cpu_setup_44x.S b/arch/powerpc/kernel/cpu_setup_44x.S index 5465e8de0e61..80cac984d85d 100644 --- a/arch/powerpc/kernel/cpu_setup_44x.S +++ b/arch/powerpc/kernel/cpu_setup_44x.S | |||
| @@ -39,12 +39,6 @@ _GLOBAL(__setup_cpu_440gx) | |||
| 39 | _GLOBAL(__setup_cpu_440spe) | 39 | _GLOBAL(__setup_cpu_440spe) |
| 40 | b __fixup_440A_mcheck | 40 | b __fixup_440A_mcheck |
| 41 | 41 | ||
| 42 | /* Temporary fixup for arch/ppc until we kill the whole thing */ | ||
| 43 | #ifndef CONFIG_PPC_MERGE | ||
| 44 | _GLOBAL(__fixup_440A_mcheck) | ||
| 45 | blr | ||
| 46 | #endif | ||
| 47 | |||
| 48 | /* enable APU between CPU and FPU */ | 42 | /* enable APU between CPU and FPU */ |
| 49 | _GLOBAL(__init_fpu_44x) | 43 | _GLOBAL(__init_fpu_44x) |
| 50 | mfspr r3,SPRN_CCR0 | 44 | mfspr r3,SPRN_CCR0 |
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c index 6ac8612da3c3..d972decf0324 100644 --- a/arch/powerpc/kernel/irq.c +++ b/arch/powerpc/kernel/irq.c | |||
| @@ -77,22 +77,12 @@ static int ppc_spurious_interrupts; | |||
| 77 | EXPORT_SYMBOL(__irq_offset_value); | 77 | EXPORT_SYMBOL(__irq_offset_value); |
| 78 | atomic_t ppc_n_lost_interrupts; | 78 | atomic_t ppc_n_lost_interrupts; |
| 79 | 79 | ||
| 80 | #ifndef CONFIG_PPC_MERGE | ||
| 81 | #define NR_MASK_WORDS ((NR_IRQS + 31) / 32) | ||
| 82 | unsigned long ppc_cached_irq_mask[NR_MASK_WORDS]; | ||
| 83 | #endif | ||
| 84 | |||
| 85 | #ifdef CONFIG_TAU_INT | 80 | #ifdef CONFIG_TAU_INT |
| 86 | extern int tau_initialized; | 81 | extern int tau_initialized; |
| 87 | extern int tau_interrupts(int); | 82 | extern int tau_interrupts(int); |
| 88 | #endif | 83 | #endif |
| 89 | #endif /* CONFIG_PPC32 */ | 84 | #endif /* CONFIG_PPC32 */ |
| 90 | 85 | ||
| 91 | #if defined(CONFIG_SMP) && !defined(CONFIG_PPC_MERGE) | ||
| 92 | extern atomic_t ipi_recv; | ||
| 93 | extern atomic_t ipi_sent; | ||
| 94 | #endif | ||
| 95 | |||
| 96 | #ifdef CONFIG_PPC64 | 86 | #ifdef CONFIG_PPC64 |
| 97 | EXPORT_SYMBOL(irq_desc); | 87 | EXPORT_SYMBOL(irq_desc); |
| 98 | 88 | ||
| @@ -216,21 +206,14 @@ int show_interrupts(struct seq_file *p, void *v) | |||
| 216 | skip: | 206 | skip: |
| 217 | spin_unlock_irqrestore(&desc->lock, flags); | 207 | spin_unlock_irqrestore(&desc->lock, flags); |
| 218 | } else if (i == NR_IRQS) { | 208 | } else if (i == NR_IRQS) { |
| 219 | #ifdef CONFIG_PPC32 | 209 | #if defined(CONFIG_PPC32) && defined(CONFIG_TAU_INT) |
| 220 | #ifdef CONFIG_TAU_INT | ||
| 221 | if (tau_initialized){ | 210 | if (tau_initialized){ |
| 222 | seq_puts(p, "TAU: "); | 211 | seq_puts(p, "TAU: "); |
| 223 | for_each_online_cpu(j) | 212 | for_each_online_cpu(j) |
| 224 | seq_printf(p, "%10u ", tau_interrupts(j)); | 213 | seq_printf(p, "%10u ", tau_interrupts(j)); |
| 225 | seq_puts(p, " PowerPC Thermal Assist (cpu temp)\n"); | 214 | seq_puts(p, " PowerPC Thermal Assist (cpu temp)\n"); |
| 226 | } | 215 | } |
| 227 | #endif | 216 | #endif /* CONFIG_PPC32 && CONFIG_TAU_INT*/ |
| 228 | #if defined(CONFIG_SMP) && !defined(CONFIG_PPC_MERGE) | ||
| 229 | /* should this be per processor send/receive? */ | ||
| 230 | seq_printf(p, "IPI (recv/sent): %10u/%u\n", | ||
| 231 | atomic_read(&ipi_recv), atomic_read(&ipi_sent)); | ||
| 232 | #endif | ||
| 233 | #endif /* CONFIG_PPC32 */ | ||
| 234 | seq_printf(p, "BAD: %10u\n", ppc_spurious_interrupts); | 217 | seq_printf(p, "BAD: %10u\n", ppc_spurious_interrupts); |
| 235 | } | 218 | } |
| 236 | return 0; | 219 | return 0; |
| @@ -454,8 +437,6 @@ void do_softirq(void) | |||
| 454 | * IRQ controller and virtual interrupts | 437 | * IRQ controller and virtual interrupts |
| 455 | */ | 438 | */ |
| 456 | 439 | ||
| 457 | #ifdef CONFIG_PPC_MERGE | ||
| 458 | |||
| 459 | static LIST_HEAD(irq_hosts); | 440 | static LIST_HEAD(irq_hosts); |
| 460 | static DEFINE_SPINLOCK(irq_big_lock); | 441 | static DEFINE_SPINLOCK(irq_big_lock); |
| 461 | static DEFINE_PER_CPU(unsigned int, irq_radix_reader); | 442 | static DEFINE_PER_CPU(unsigned int, irq_radix_reader); |
| @@ -1114,8 +1095,6 @@ static int __init irq_debugfs_init(void) | |||
| 1114 | __initcall(irq_debugfs_init); | 1095 | __initcall(irq_debugfs_init); |
| 1115 | #endif /* CONFIG_VIRQ_DEBUG */ | 1096 | #endif /* CONFIG_VIRQ_DEBUG */ |
| 1116 | 1097 | ||
| 1117 | #endif /* CONFIG_PPC_MERGE */ | ||
| 1118 | |||
| 1119 | #ifdef CONFIG_PPC64 | 1098 | #ifdef CONFIG_PPC64 |
| 1120 | static int __init setup_noirqdistrib(char *str) | 1099 | static int __init setup_noirqdistrib(char *str) |
| 1121 | { | 1100 | { |
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index e030f3bd5024..957bded0020d 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c | |||
| @@ -276,10 +276,8 @@ int set_dabr(unsigned long dabr) | |||
| 276 | { | 276 | { |
| 277 | __get_cpu_var(current_dabr) = dabr; | 277 | __get_cpu_var(current_dabr) = dabr; |
| 278 | 278 | ||
| 279 | #ifdef CONFIG_PPC_MERGE /* XXX for now */ | ||
| 280 | if (ppc_md.set_dabr) | 279 | if (ppc_md.set_dabr) |
| 281 | return ppc_md.set_dabr(dabr); | 280 | return ppc_md.set_dabr(dabr); |
| 282 | #endif | ||
| 283 | 281 | ||
| 284 | /* XXX should we have a CPU_FTR_HAS_DABR ? */ | 282 | /* XXX should we have a CPU_FTR_HAS_DABR ? */ |
| 285 | #if defined(CONFIG_PPC64) || defined(CONFIG_6xx) | 283 | #if defined(CONFIG_PPC64) || defined(CONFIG_6xx) |
diff --git a/arch/powerpc/kernel/vdso.c b/arch/powerpc/kernel/vdso.c index f177c60ea766..65639a43e644 100644 --- a/arch/powerpc/kernel/vdso.c +++ b/arch/powerpc/kernel/vdso.c | |||
| @@ -788,9 +788,7 @@ static int __init vdso_init(void) | |||
| 788 | 788 | ||
| 789 | return 0; | 789 | return 0; |
| 790 | } | 790 | } |
| 791 | #ifdef CONFIG_PPC_MERGE | ||
| 792 | arch_initcall(vdso_init); | 791 | arch_initcall(vdso_init); |
| 793 | #endif | ||
| 794 | 792 | ||
| 795 | int in_gate_area_no_task(unsigned long addr) | 793 | int in_gate_area_no_task(unsigned long addr) |
| 796 | { | 794 | { |
