Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Stephen Rothwell and committed by
Benjamin Herrenschmidt
1b041885 bc58450b

+3 -37
+1 -8
arch/powerpc/boot/Makefile
··· 184 184 image-$(CONFIG_PPC_PMAC) += zImage.pmac 185 185 image-$(CONFIG_PPC_HOLLY) += dtbImage.holly 186 186 image-$(CONFIG_PPC_PRPMC2800) += dtbImage.prpmc2800 187 - image-$(CONFIG_PPC_ISERIES) += zImage.iseries 188 187 image-$(CONFIG_DEFAULT_UIMAGE) += uImage 189 188 image-$(CONFIG_EPAPR_BOOT) += zImage.epapr 190 189 ··· 310 311 $(obj)/vmlinux.strip: vmlinux 311 312 $(STRIP) -s -R .comment $< -o $@ 312 313 313 - # The iseries hypervisor won't take an ET_DYN executable, so this 314 - # changes the type (byte 17) in the file to ET_EXEC (2). 315 - $(obj)/zImage.iseries: vmlinux 316 - $(STRIP) -s -R .comment $< -o $@ 317 - printf "\x02" | dd of=$@ conv=notrunc bs=1 seek=17 318 - 319 314 $(obj)/uImage: vmlinux $(wrapperbits) 320 315 $(call if_changed,wrap,uboot) 321 316 ··· 357 364 # anything not in $(targets) 358 365 clean-files += $(image-) $(initrd-) cuImage.* dtbImage.* treeImage.* \ 359 366 zImage zImage.initrd zImage.chrp zImage.coff zImage.holly \ 360 - zImage.iseries zImage.miboot zImage.pmac zImage.pseries \ 367 + zImage.miboot zImage.pmac zImage.pseries \ 361 368 zImage.maple simpleImage.* otheros.bld *.dtb 362 369 363 370 # clean up files cached by wrapper
-4
arch/powerpc/include/asm/dma.h
··· 34 34 /* Doesn't really apply... */ 35 35 #define MAX_DMA_ADDRESS (~0UL) 36 36 37 - #if !defined(CONFIG_PPC_ISERIES) || defined(CONFIG_PCI) 38 - 39 37 #ifdef HAVE_REALLY_SLOW_DMA_CONTROLLER 40 38 #define dma_outb outb_p 41 39 #else ··· 351 353 #else 352 354 #define isa_dma_bridge_buggy (0) 353 355 #endif 354 - 355 - #endif /* !defined(CONFIG_PPC_ISERIES) || defined(CONFIG_PCI) */ 356 356 357 357 #endif /* __KERNEL__ */ 358 358 #endif /* _ASM_POWERPC_DMA_H */
-8
arch/powerpc/include/asm/lppaca.h
··· 41 41 * We only have to have statically allocated lppaca structs on 42 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 44 #define NR_LPPACAS 1 52 - #endif 53 45 54 46 55 47 /* The Hypervisor barfs if the lppaca crosses a page boundary. A 1k
+2 -3
arch/powerpc/include/asm/spinlock.h
··· 23 23 #ifdef CONFIG_PPC64 24 24 #include <asm/paca.h> 25 25 #include <asm/hvcall.h> 26 - #include <asm/iseries/hv_call.h> 27 26 #endif 28 27 #include <asm/asm-compat.h> 29 28 #include <asm/synch.h> ··· 94 95 * value. 95 96 */ 96 97 97 - #if defined(CONFIG_PPC_SPLPAR) || defined(CONFIG_PPC_ISERIES) 98 + #if defined(CONFIG_PPC_SPLPAR) 98 99 /* We only yield to the hypervisor if we are in shared processor mode */ 99 100 #define SHARED_PROCESSOR (get_lppaca()->shared_proc) 100 101 extern void __spin_yield(arch_spinlock_t *lock); 101 102 extern void __rw_yield(arch_rwlock_t *lock); 102 - #else /* SPLPAR || ISERIES */ 103 + #else /* SPLPAR */ 103 104 #define __spin_yield(x) barrier() 104 105 #define __rw_yield(x) barrier() 105 106 #define SHARED_PROCESSOR 0
-14
arch/powerpc/kernel/asm-offsets.c
··· 46 46 #include <asm/hvcall.h> 47 47 #include <asm/xics.h> 48 48 #endif 49 - #ifdef CONFIG_PPC_ISERIES 50 - #include <asm/iseries/alpaca.h> 51 - #endif 52 49 #ifdef CONFIG_PPC_POWERNV 53 50 #include <asm/opal.h> 54 51 #endif ··· 379 382 380 383 #ifdef CONFIG_BUG 381 384 DEFINE(BUG_ENTRY_SIZE, sizeof(struct bug_entry)); 382 - #endif 383 - 384 - #ifdef CONFIG_PPC_ISERIES 385 - /* the assembler miscalculates the VSID values */ 386 - DEFINE(PAGE_OFFSET_ESID, GET_ESID(PAGE_OFFSET)); 387 - DEFINE(PAGE_OFFSET_VSID, KERNEL_VSID(PAGE_OFFSET)); 388 - DEFINE(VMALLOC_START_ESID, GET_ESID(VMALLOC_START)); 389 - DEFINE(VMALLOC_START_VSID, KERNEL_VSID(VMALLOC_START)); 390 - 391 - /* alpaca */ 392 - DEFINE(ALPACA_SIZE, sizeof(struct alpaca)); 393 385 #endif 394 386 395 387 DEFINE(PGD_TABLE_SIZE, PGD_TABLE_SIZE);