Skip to content

Commit 002b27a

Browse files
committed
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
1 parent 732b32d commit 002b27a

18 files changed

Lines changed: 21 additions & 26 deletions

File tree

arch/powerpc/include/asm/hw_irq.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
static inline void __hard_irq_enable(void)
6565
{
66-
if (IS_ENABLED(CONFIG_BOOKE_OR_40x))
66+
if (IS_ENABLED(CONFIG_BOOKE))
6767
wrtee(MSR_EE);
6868
else if (IS_ENABLED(CONFIG_PPC_8xx))
6969
wrtspr(SPRN_EIE);
@@ -75,7 +75,7 @@ static inline void __hard_irq_enable(void)
7575

7676
static inline void __hard_irq_disable(void)
7777
{
78-
if (IS_ENABLED(CONFIG_BOOKE_OR_40x))
78+
if (IS_ENABLED(CONFIG_BOOKE))
7979
wrtee(0);
8080
else if (IS_ENABLED(CONFIG_PPC_8xx))
8181
wrtspr(SPRN_EID);
@@ -87,7 +87,7 @@ static inline void __hard_irq_disable(void)
8787

8888
static inline void __hard_EE_RI_disable(void)
8989
{
90-
if (IS_ENABLED(CONFIG_BOOKE_OR_40x))
90+
if (IS_ENABLED(CONFIG_BOOKE))
9191
wrtee(0);
9292
else if (IS_ENABLED(CONFIG_PPC_8xx))
9393
wrtspr(SPRN_NRI);
@@ -99,7 +99,7 @@ static inline void __hard_EE_RI_disable(void)
9999

100100
static inline void __hard_RI_enable(void)
101101
{
102-
if (IS_ENABLED(CONFIG_BOOKE_OR_40x))
102+
if (IS_ENABLED(CONFIG_BOOKE))
103103
return;
104104

105105
if (IS_ENABLED(CONFIG_PPC_8xx))

arch/powerpc/include/asm/irq.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ extern int distribute_irqs;
3333

3434
struct pt_regs;
3535

36-
#ifdef CONFIG_BOOKE_OR_40x
36+
#ifdef CONFIG_BOOKE
3737
/*
3838
* Per-cpu stacks for handling critical, debug and machine check
3939
* level interrupts.

arch/powerpc/include/asm/kup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ static __always_inline bool kuap_is_disabled(void);
2020
#include <asm/nohash/32/kup-8xx.h>
2121
#endif
2222

23-
#ifdef CONFIG_BOOKE_OR_40x
23+
#ifdef CONFIG_BOOKE
2424
#include <asm/nohash/kup-booke.h>
2525
#endif
2626

arch/powerpc/include/asm/processor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ struct thread_struct {
159159
unsigned long sr0;
160160
#endif
161161
#endif /* CONFIG_PPC32 */
162-
#if defined(CONFIG_BOOKE_OR_40x) && defined(CONFIG_PPC_KUAP)
162+
#if defined(CONFIG_BOOKE) && defined(CONFIG_PPC_KUAP)
163163
unsigned long pid; /* value written in PID reg. at interrupt exit */
164164
#endif
165165
/* Debug Registers */

arch/powerpc/include/asm/ptrace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ static inline void regs_set_return_value(struct pt_regs *regs, unsigned long rc)
310310

311311
static inline bool cpu_has_msr_ri(void)
312312
{
313-
return !IS_ENABLED(CONFIG_BOOKE_OR_40x);
313+
return !IS_ENABLED(CONFIG_BOOKE);
314314
}
315315

316316
static inline bool regs_is_unrecoverable(struct pt_regs *regs)

arch/powerpc/include/asm/reg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <asm/feature-fixups.h>
1919

2020
/* Pickup Book E specific registers. */
21-
#ifdef CONFIG_BOOKE_OR_40x
21+
#ifdef CONFIG_BOOKE
2222
#include <asm/reg_booke.h>
2323
#endif
2424

arch/powerpc/kernel/asm-offsets.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
#endif
5555

5656
#ifdef CONFIG_PPC32
57-
#ifdef CONFIG_BOOKE_OR_40x
57+
#ifdef CONFIG_BOOKE
5858
#include "head_booke.h"
5959
#endif
6060
#endif

arch/powerpc/kernel/entry_32.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ transfer_to_syscall:
108108
stw r11, 0(r1)
109109
mflr r12
110110
stw r12, _LINK(r1)
111-
#ifdef CONFIG_BOOKE_OR_40x
111+
#ifdef CONFIG_BOOKE
112112
rlwinm r9,r9,0,14,12 /* clear MSR_WE (necessary?) */
113113
#endif
114114
lis r12,STACK_FRAME_REGS_MARKER@ha /* exception frame marker */

arch/powerpc/kernel/epapr_hcalls.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ _GLOBAL(epapr_ev_idle)
2121
ori r4, r4,_TLF_NAPPING /* so when we take an exception */
2222
PPC_STL r4, TI_LOCAL_FLAGS(r2) /* it will return to our caller */
2323

24-
#ifdef CONFIG_BOOKE_OR_40x
24+
#ifdef CONFIG_BOOKE
2525
wrteei 1
2626
#else
2727
mfmsr r4

arch/powerpc/kernel/irq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ void __init init_IRQ(void)
333333
static_call_update(ppc_get_irq, ppc_md.get_irq);
334334
}
335335

336-
#ifdef CONFIG_BOOKE_OR_40x
336+
#ifdef CONFIG_BOOKE
337337
void *critirq_ctx[NR_CPUS] __read_mostly;
338338
void *dbgirq_ctx[NR_CPUS] __read_mostly;
339339
void *mcheckirq_ctx[NR_CPUS] __read_mostly;

0 commit comments

Comments
 (0)