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

powerpc/4xx: Remove CONFIG_BOOKE_OR_40x

Now that 40x is gone, replace CONFIG_BOOKE_OR_40x by CONFIG_BOOKE.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240628121201.130802-5-mpe@ellerman.id.au

+21 -26
+4 -4
arch/powerpc/include/asm/hw_irq.h
··· 63 63 64 64 static inline void __hard_irq_enable(void) 65 65 { 66 - if (IS_ENABLED(CONFIG_BOOKE_OR_40x)) 66 + if (IS_ENABLED(CONFIG_BOOKE)) 67 67 wrtee(MSR_EE); 68 68 else if (IS_ENABLED(CONFIG_PPC_8xx)) 69 69 wrtspr(SPRN_EIE); ··· 75 75 76 76 static inline void __hard_irq_disable(void) 77 77 { 78 - if (IS_ENABLED(CONFIG_BOOKE_OR_40x)) 78 + if (IS_ENABLED(CONFIG_BOOKE)) 79 79 wrtee(0); 80 80 else if (IS_ENABLED(CONFIG_PPC_8xx)) 81 81 wrtspr(SPRN_EID); ··· 87 87 88 88 static inline void __hard_EE_RI_disable(void) 89 89 { 90 - if (IS_ENABLED(CONFIG_BOOKE_OR_40x)) 90 + if (IS_ENABLED(CONFIG_BOOKE)) 91 91 wrtee(0); 92 92 else if (IS_ENABLED(CONFIG_PPC_8xx)) 93 93 wrtspr(SPRN_NRI); ··· 99 99 100 100 static inline void __hard_RI_enable(void) 101 101 { 102 - if (IS_ENABLED(CONFIG_BOOKE_OR_40x)) 102 + if (IS_ENABLED(CONFIG_BOOKE)) 103 103 return; 104 104 105 105 if (IS_ENABLED(CONFIG_PPC_8xx))
+1 -1
arch/powerpc/include/asm/irq.h
··· 33 33 34 34 struct pt_regs; 35 35 36 - #ifdef CONFIG_BOOKE_OR_40x 36 + #ifdef CONFIG_BOOKE 37 37 /* 38 38 * Per-cpu stacks for handling critical, debug and machine check 39 39 * level interrupts.
+1 -1
arch/powerpc/include/asm/kup.h
··· 20 20 #include <asm/nohash/32/kup-8xx.h> 21 21 #endif 22 22 23 - #ifdef CONFIG_BOOKE_OR_40x 23 + #ifdef CONFIG_BOOKE 24 24 #include <asm/nohash/kup-booke.h> 25 25 #endif 26 26
+1 -1
arch/powerpc/include/asm/processor.h
··· 159 159 unsigned long sr0; 160 160 #endif 161 161 #endif /* CONFIG_PPC32 */ 162 - #if defined(CONFIG_BOOKE_OR_40x) && defined(CONFIG_PPC_KUAP) 162 + #if defined(CONFIG_BOOKE) && defined(CONFIG_PPC_KUAP) 163 163 unsigned long pid; /* value written in PID reg. at interrupt exit */ 164 164 #endif 165 165 /* Debug Registers */
+1 -1
arch/powerpc/include/asm/ptrace.h
··· 310 310 311 311 static inline bool cpu_has_msr_ri(void) 312 312 { 313 - return !IS_ENABLED(CONFIG_BOOKE_OR_40x); 313 + return !IS_ENABLED(CONFIG_BOOKE); 314 314 } 315 315 316 316 static inline bool regs_is_unrecoverable(struct pt_regs *regs)
+1 -1
arch/powerpc/include/asm/reg.h
··· 18 18 #include <asm/feature-fixups.h> 19 19 20 20 /* Pickup Book E specific registers. */ 21 - #ifdef CONFIG_BOOKE_OR_40x 21 + #ifdef CONFIG_BOOKE 22 22 #include <asm/reg_booke.h> 23 23 #endif 24 24
+1 -1
arch/powerpc/kernel/asm-offsets.c
··· 54 54 #endif 55 55 56 56 #ifdef CONFIG_PPC32 57 - #ifdef CONFIG_BOOKE_OR_40x 57 + #ifdef CONFIG_BOOKE 58 58 #include "head_booke.h" 59 59 #endif 60 60 #endif
+1 -1
arch/powerpc/kernel/entry_32.S
··· 108 108 stw r11, 0(r1) 109 109 mflr r12 110 110 stw r12, _LINK(r1) 111 - #ifdef CONFIG_BOOKE_OR_40x 111 + #ifdef CONFIG_BOOKE 112 112 rlwinm r9,r9,0,14,12 /* clear MSR_WE (necessary?) */ 113 113 #endif 114 114 lis r12,STACK_FRAME_REGS_MARKER@ha /* exception frame marker */
+1 -1
arch/powerpc/kernel/epapr_hcalls.S
··· 21 21 ori r4, r4,_TLF_NAPPING /* so when we take an exception */ 22 22 PPC_STL r4, TI_LOCAL_FLAGS(r2) /* it will return to our caller */ 23 23 24 - #ifdef CONFIG_BOOKE_OR_40x 24 + #ifdef CONFIG_BOOKE 25 25 wrteei 1 26 26 #else 27 27 mfmsr r4
+1 -1
arch/powerpc/kernel/irq.c
··· 333 333 static_call_update(ppc_get_irq, ppc_md.get_irq); 334 334 } 335 335 336 - #ifdef CONFIG_BOOKE_OR_40x 336 + #ifdef CONFIG_BOOKE 337 337 void *critirq_ctx[NR_CPUS] __read_mostly; 338 338 void *dbgirq_ctx[NR_CPUS] __read_mostly; 339 339 void *mcheckirq_ctx[NR_CPUS] __read_mostly;
+2 -2
arch/powerpc/kernel/kgdb.c
··· 45 45 { 0x0800, 0x08 /* SIGFPE */ }, /* fp unavailable */ 46 46 { 0x0900, 0x0e /* SIGALRM */ }, /* decrementer */ 47 47 { 0x0c00, 0x14 /* SIGCHLD */ }, /* system call */ 48 - #ifdef CONFIG_BOOKE_OR_40x 48 + #ifdef CONFIG_BOOKE 49 49 { 0x2002, 0x05 /* SIGTRAP */ }, /* debug */ 50 50 #if defined(CONFIG_PPC_85xx) 51 51 { 0x2010, 0x08 /* SIGFPE */ }, /* spe unavailable */ ··· 64 64 { 0x2010, 0x08 /* SIGFPE */ }, /* fp unavailable */ 65 65 { 0x2020, 0x08 /* SIGFPE */ }, /* ap unavailable */ 66 66 #endif 67 - #else /* !CONFIG_BOOKE_OR_40x */ 67 + #else /* !CONFIG_BOOKE */ 68 68 { 0x0d00, 0x05 /* SIGTRAP */ }, /* single-step */ 69 69 #if defined(CONFIG_PPC_8xx) 70 70 { 0x1000, 0x04 /* SIGILL */ }, /* software emulation */
+1 -1
arch/powerpc/kernel/process.c
··· 1875 1875 #if defined(CONFIG_PPC_BOOK3S_32) && defined(CONFIG_PPC_KUAP) 1876 1876 p->thread.kuap = KUAP_NONE; 1877 1877 #endif 1878 - #if defined(CONFIG_BOOKE_OR_40x) && defined(CONFIG_PPC_KUAP) 1878 + #if defined(CONFIG_BOOKE) && defined(CONFIG_PPC_KUAP) 1879 1879 p->thread.pid = MMU_NO_CONTEXT; 1880 1880 #endif 1881 1881
+1 -1
arch/powerpc/kernel/setup.h
··· 29 29 static inline void setup_tlb_core_data(void) { } 30 30 #endif 31 31 32 - #ifdef CONFIG_BOOKE_OR_40x 32 + #ifdef CONFIG_BOOKE 33 33 void exc_lvl_early_init(void); 34 34 #else 35 35 static inline void exc_lvl_early_init(void) { }
+1 -1
arch/powerpc/kernel/setup_32.c
··· 176 176 } 177 177 #endif 178 178 179 - #ifdef CONFIG_BOOKE_OR_40x 179 + #ifdef CONFIG_BOOKE 180 180 void __init exc_lvl_early_init(void) 181 181 { 182 182 unsigned int i, hw_cpu;
+1 -1
arch/powerpc/kernel/time.c
··· 695 695 696 696 static void start_cpu_decrementer(void) 697 697 { 698 - #ifdef CONFIG_BOOKE_OR_40x 698 + #ifdef CONFIG_BOOKE 699 699 unsigned int tcr; 700 700 701 701 /* Clear any pending timer interrupts */
+1 -1
arch/powerpc/mm/mmu_context.c
··· 21 21 #ifdef CONFIG_PPC_BOOK3S_32 22 22 tsk->thread.sr0 = mm->context.sr0; 23 23 #endif 24 - #if defined(CONFIG_BOOKE_OR_40x) && defined(CONFIG_PPC_KUAP) 24 + #if defined(CONFIG_BOOKE) && defined(CONFIG_PPC_KUAP) 25 25 tsk->thread.pid = mm->context.id; 26 26 #endif 27 27 }
+1 -1
arch/powerpc/mm/nohash/mmu_context.c
··· 303 303 if (IS_ENABLED(CONFIG_BDI_SWITCH)) 304 304 abatron_pteptrs[1] = next->pgd; 305 305 set_context(id, next->pgd); 306 - #if defined(CONFIG_BOOKE_OR_40x) && defined(CONFIG_PPC_KUAP) 306 + #if defined(CONFIG_BOOKE) && defined(CONFIG_PPC_KUAP) 307 307 tsk->thread.pid = id; 308 308 #endif 309 309 raw_spin_unlock(&context_lock);
-5
arch/powerpc/platforms/Kconfig.cputype
··· 335 335 depends on PPC_E500 || 44x 336 336 default y 337 337 338 - config BOOKE_OR_40x 339 - bool 340 - depends on BOOKE 341 - default y 342 - 343 338 config PTE_64BIT 344 339 bool 345 340 depends on 44x || PPC_E500 || PPC_86xx