diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2012-03-15 14:20:13 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-03-20 20:16:12 -0400 |
commit | 1b041885ae1d9938440fc2cf6a444b70ec0a86c9 (patch) | |
tree | 58feb1eb3e72df19161845d418cf9ca714c702d5 /arch | |
parent | bc58450b023c5815e5bc54e6d43edbd1e3576fe6 (diff) |
powerpc: Remove the remaining CONFIG_PPC_ISERIES pieces
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/boot/Makefile | 9 | ||||
-rw-r--r-- | arch/powerpc/include/asm/dma.h | 4 | ||||
-rw-r--r-- | arch/powerpc/include/asm/lppaca.h | 8 | ||||
-rw-r--r-- | arch/powerpc/include/asm/spinlock.h | 5 | ||||
-rw-r--r-- | arch/powerpc/kernel/asm-offsets.c | 14 |
5 files changed, 3 insertions, 37 deletions
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index f6622e022364..e8461cb18d04 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile | |||
@@ -184,7 +184,6 @@ image-$(CONFIG_PPC_EFIKA) += zImage.chrp | |||
184 | image-$(CONFIG_PPC_PMAC) += zImage.pmac | 184 | image-$(CONFIG_PPC_PMAC) += zImage.pmac |
185 | image-$(CONFIG_PPC_HOLLY) += dtbImage.holly | 185 | image-$(CONFIG_PPC_HOLLY) += dtbImage.holly |
186 | image-$(CONFIG_PPC_PRPMC2800) += dtbImage.prpmc2800 | 186 | image-$(CONFIG_PPC_PRPMC2800) += dtbImage.prpmc2800 |
187 | image-$(CONFIG_PPC_ISERIES) += zImage.iseries | ||
188 | image-$(CONFIG_DEFAULT_UIMAGE) += uImage | 187 | image-$(CONFIG_DEFAULT_UIMAGE) += uImage |
189 | image-$(CONFIG_EPAPR_BOOT) += zImage.epapr | 188 | image-$(CONFIG_EPAPR_BOOT) += zImage.epapr |
190 | 189 | ||
@@ -311,12 +310,6 @@ $(obj)/dtbImage.%: vmlinux $(wrapperbits) $(obj)/%.dtb | |||
311 | $(obj)/vmlinux.strip: vmlinux | 310 | $(obj)/vmlinux.strip: vmlinux |
312 | $(STRIP) -s -R .comment $< -o $@ | 311 | $(STRIP) -s -R .comment $< -o $@ |
313 | 312 | ||
314 | # The iseries hypervisor won't take an ET_DYN executable, so this | ||
315 | # changes the type (byte 17) in the file to ET_EXEC (2). | ||
316 | $(obj)/zImage.iseries: vmlinux | ||
317 | $(STRIP) -s -R .comment $< -o $@ | ||
318 | printf "\x02" | dd of=$@ conv=notrunc bs=1 seek=17 | ||
319 | |||
320 | $(obj)/uImage: vmlinux $(wrapperbits) | 313 | $(obj)/uImage: vmlinux $(wrapperbits) |
321 | $(call if_changed,wrap,uboot) | 314 | $(call if_changed,wrap,uboot) |
322 | 315 | ||
@@ -364,7 +357,7 @@ install: $(CONFIGURE) $(addprefix $(obj)/, $(image-y)) | |||
364 | # anything not in $(targets) | 357 | # anything not in $(targets) |
365 | clean-files += $(image-) $(initrd-) cuImage.* dtbImage.* treeImage.* \ | 358 | clean-files += $(image-) $(initrd-) cuImage.* dtbImage.* treeImage.* \ |
366 | zImage zImage.initrd zImage.chrp zImage.coff zImage.holly \ | 359 | zImage zImage.initrd zImage.chrp zImage.coff zImage.holly \ |
367 | zImage.iseries zImage.miboot zImage.pmac zImage.pseries \ | 360 | zImage.miboot zImage.pmac zImage.pseries \ |
368 | zImage.maple simpleImage.* otheros.bld *.dtb | 361 | zImage.maple simpleImage.* otheros.bld *.dtb |
369 | 362 | ||
370 | # clean up files cached by wrapper | 363 | # clean up files cached by wrapper |
diff --git a/arch/powerpc/include/asm/dma.h b/arch/powerpc/include/asm/dma.h index a7e06e25c708..adadb9943610 100644 --- a/arch/powerpc/include/asm/dma.h +++ b/arch/powerpc/include/asm/dma.h | |||
@@ -34,8 +34,6 @@ | |||
34 | /* Doesn't really apply... */ | 34 | /* Doesn't really apply... */ |
35 | #define MAX_DMA_ADDRESS (~0UL) | 35 | #define MAX_DMA_ADDRESS (~0UL) |
36 | 36 | ||
37 | #if !defined(CONFIG_PPC_ISERIES) || defined(CONFIG_PCI) | ||
38 | |||
39 | #ifdef HAVE_REALLY_SLOW_DMA_CONTROLLER | 37 | #ifdef HAVE_REALLY_SLOW_DMA_CONTROLLER |
40 | #define dma_outb outb_p | 38 | #define dma_outb outb_p |
41 | #else | 39 | #else |
@@ -354,7 +352,5 @@ extern int isa_dma_bridge_buggy; | |||
354 | #define isa_dma_bridge_buggy (0) | 352 | #define isa_dma_bridge_buggy (0) |
355 | #endif | 353 | #endif |
356 | 354 | ||
357 | #endif /* !defined(CONFIG_PPC_ISERIES) || defined(CONFIG_PCI) */ | ||
358 | |||
359 | #endif /* __KERNEL__ */ | 355 | #endif /* __KERNEL__ */ |
360 | #endif /* _ASM_POWERPC_DMA_H */ | 356 | #endif /* _ASM_POWERPC_DMA_H */ |
diff --git a/arch/powerpc/include/asm/lppaca.h b/arch/powerpc/include/asm/lppaca.h index e0298d26ce5d..a76254af0aaa 100644 --- a/arch/powerpc/include/asm/lppaca.h +++ b/arch/powerpc/include/asm/lppaca.h | |||
@@ -41,15 +41,7 @@ | |||
41 | * We only have to have statically allocated lppaca structs on | 41 | * We only have to have statically allocated lppaca structs on |
42 | * legacy iSeries, which supports at most 64 cpus. | 42 | * legacy iSeries, which supports at most 64 cpus. |
43 | */ | 43 | */ |
44 | #ifdef CONFIG_PPC_ISERIES | ||
45 | #if NR_CPUS < 64 | ||
46 | #define NR_LPPACAS NR_CPUS | ||
47 | #else | ||
48 | #define NR_LPPACAS 64 | ||
49 | #endif | ||
50 | #else /* not iSeries */ | ||
51 | #define NR_LPPACAS 1 | 44 | #define NR_LPPACAS 1 |
52 | #endif | ||
53 | 45 | ||
54 | 46 | ||
55 | /* The Hypervisor barfs if the lppaca crosses a page boundary. A 1k | 47 | /* The Hypervisor barfs if the lppaca crosses a page boundary. A 1k |
diff --git a/arch/powerpc/include/asm/spinlock.h b/arch/powerpc/include/asm/spinlock.h index f9611bd69ed2..7124fc06ad47 100644 --- a/arch/powerpc/include/asm/spinlock.h +++ b/arch/powerpc/include/asm/spinlock.h | |||
@@ -23,7 +23,6 @@ | |||
23 | #ifdef CONFIG_PPC64 | 23 | #ifdef CONFIG_PPC64 |
24 | #include <asm/paca.h> | 24 | #include <asm/paca.h> |
25 | #include <asm/hvcall.h> | 25 | #include <asm/hvcall.h> |
26 | #include <asm/iseries/hv_call.h> | ||
27 | #endif | 26 | #endif |
28 | #include <asm/asm-compat.h> | 27 | #include <asm/asm-compat.h> |
29 | #include <asm/synch.h> | 28 | #include <asm/synch.h> |
@@ -95,12 +94,12 @@ static inline int arch_spin_trylock(arch_spinlock_t *lock) | |||
95 | * value. | 94 | * value. |
96 | */ | 95 | */ |
97 | 96 | ||
98 | #if defined(CONFIG_PPC_SPLPAR) || defined(CONFIG_PPC_ISERIES) | 97 | #if defined(CONFIG_PPC_SPLPAR) |
99 | /* We only yield to the hypervisor if we are in shared processor mode */ | 98 | /* We only yield to the hypervisor if we are in shared processor mode */ |
100 | #define SHARED_PROCESSOR (get_lppaca()->shared_proc) | 99 | #define SHARED_PROCESSOR (get_lppaca()->shared_proc) |
101 | extern void __spin_yield(arch_spinlock_t *lock); | 100 | extern void __spin_yield(arch_spinlock_t *lock); |
102 | extern void __rw_yield(arch_rwlock_t *lock); | 101 | extern void __rw_yield(arch_rwlock_t *lock); |
103 | #else /* SPLPAR || ISERIES */ | 102 | #else /* SPLPAR */ |
104 | #define __spin_yield(x) barrier() | 103 | #define __spin_yield(x) barrier() |
105 | #define __rw_yield(x) barrier() | 104 | #define __rw_yield(x) barrier() |
106 | #define SHARED_PROCESSOR 0 | 105 | #define SHARED_PROCESSOR 0 |
diff --git a/arch/powerpc/kernel/asm-offsets.c b/arch/powerpc/kernel/asm-offsets.c index cdd0d264415f..cc492e48ddfa 100644 --- a/arch/powerpc/kernel/asm-offsets.c +++ b/arch/powerpc/kernel/asm-offsets.c | |||
@@ -46,9 +46,6 @@ | |||
46 | #include <asm/hvcall.h> | 46 | #include <asm/hvcall.h> |
47 | #include <asm/xics.h> | 47 | #include <asm/xics.h> |
48 | #endif | 48 | #endif |
49 | #ifdef CONFIG_PPC_ISERIES | ||
50 | #include <asm/iseries/alpaca.h> | ||
51 | #endif | ||
52 | #ifdef CONFIG_PPC_POWERNV | 49 | #ifdef CONFIG_PPC_POWERNV |
53 | #include <asm/opal.h> | 50 | #include <asm/opal.h> |
54 | #endif | 51 | #endif |
@@ -384,17 +381,6 @@ int main(void) | |||
384 | DEFINE(BUG_ENTRY_SIZE, sizeof(struct bug_entry)); | 381 | DEFINE(BUG_ENTRY_SIZE, sizeof(struct bug_entry)); |
385 | #endif | 382 | #endif |
386 | 383 | ||
387 | #ifdef CONFIG_PPC_ISERIES | ||
388 | /* the assembler miscalculates the VSID values */ | ||
389 | DEFINE(PAGE_OFFSET_ESID, GET_ESID(PAGE_OFFSET)); | ||
390 | DEFINE(PAGE_OFFSET_VSID, KERNEL_VSID(PAGE_OFFSET)); | ||
391 | DEFINE(VMALLOC_START_ESID, GET_ESID(VMALLOC_START)); | ||
392 | DEFINE(VMALLOC_START_VSID, KERNEL_VSID(VMALLOC_START)); | ||
393 | |||
394 | /* alpaca */ | ||
395 | DEFINE(ALPACA_SIZE, sizeof(struct alpaca)); | ||
396 | #endif | ||
397 | |||
398 | DEFINE(PGD_TABLE_SIZE, PGD_TABLE_SIZE); | 384 | DEFINE(PGD_TABLE_SIZE, PGD_TABLE_SIZE); |
399 | DEFINE(PTE_SIZE, sizeof(pte_t)); | 385 | DEFINE(PTE_SIZE, sizeof(pte_t)); |
400 | 386 | ||