irqchip/gic-v3: Use nops macro for Cavium ThunderX erratum 23154
The workaround for Cavium ThunderX erratum 23154 has a homebrew pipeflush built out of NOP sequences around the read of the IAR. This patch converts the code to use the new nops macro, which makes it a little easier to read. Reviewed-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
This commit is contained in:
parent
d44ffa5ae7
commit
016f98afd0
@ -122,14 +122,9 @@ static inline u64 gic_read_iar_cavium_thunderx(void)
|
|||||||
{
|
{
|
||||||
u64 irqstat;
|
u64 irqstat;
|
||||||
|
|
||||||
asm volatile(
|
nops(8);
|
||||||
"nop;nop;nop;nop\n\t"
|
|
||||||
"nop;nop;nop;nop");
|
|
||||||
|
|
||||||
irqstat = read_sysreg_s(ICC_IAR1_EL1);
|
irqstat = read_sysreg_s(ICC_IAR1_EL1);
|
||||||
|
nops(4);
|
||||||
asm volatile(
|
|
||||||
"nop;nop;nop;nop");
|
|
||||||
mb();
|
mb();
|
||||||
|
|
||||||
return irqstat;
|
return irqstat;
|
||||||
|
Loading…
Reference in New Issue
Block a user