Skip to content

Commit b59a950

Browse files
Thiemo Seuferralfbaechle
authored andcommitted
De-optimize and decomplicate the spurious interrupt handler.
Signed-off-by: Thiemo Seufer <ths@networkno.de> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 942b6f6 commit b59a950

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

‎arch/mips/kernel/entry.S‎

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,28 +128,25 @@ FEXPORT(syscall_exit_work)
128128
/*
129129
* Common spurious interrupt handler.
130130
*/
131-
.text
132-
.align 5
133131
LEAF(spurious_interrupt)
134132
/*
135133
* Someone tried to fool us by sending an interrupt but we
136134
* couldn't find a cause for it.
137135
*/
136+
PTR_LA t1, irq_err_count
138137
#ifdef CONFIG_SMP
139-
lui t1, %hi(irq_err_count)
140-
1: ll t0, %lo(irq_err_count)(t1)
138+
1: ll t0, (t1)
141139
addiu t0, 1
142-
sc t0, %lo(irq_err_count)(t1)
140+
sc t0, (t1)
143141
#if R10000_LLSC_WAR
144142
beqzl t0, 1b
145143
#else
146144
beqz t0, 1b
147145
#endif
148146
#else
149-
lui t1, %hi(irq_err_count)
150-
lw t0, %lo(irq_err_count)(t1)
147+
lw t0, (t1)
151148
addiu t0, 1
152-
sw t0, %lo(irq_err_count)(t1)
149+
sw t0, (t1)
153150
#endif
154151
j ret_from_irq
155152
END(spurious_interrupt)

0 commit comments

Comments
 (0)