diff options
author | Will Deacon <will.deacon@arm.com> | 2016-10-28 14:23:58 +0300 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2016-11-29 12:14:48 +0300 |
commit | 016f98afd050f876845c49d3a0ad6dd0c30c5681 (patch) | |
tree | 47eb2b64c9805c1a3dfb69a4505ec8a53a2d99dd /arch/arm64/include | |
parent | d44ffa5ae70a15a15190aa9ffa6f6acdeae1d25c (diff) | |
download | linux-016f98afd050f876845c49d3a0ad6dd0c30c5681.tar.xz |
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>
Diffstat (limited to 'arch/arm64/include')
-rw-r--r-- | arch/arm64/include/asm/arch_gicv3.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/arch/arm64/include/asm/arch_gicv3.h b/arch/arm64/include/asm/arch_gicv3.h index fdf34f8b4ee0..0313670a3e3f 100644 --- a/arch/arm64/include/asm/arch_gicv3.h +++ b/arch/arm64/include/asm/arch_gicv3.h @@ -122,14 +122,9 @@ static inline u64 gic_read_iar_cavium_thunderx(void) { u64 irqstat; - asm volatile( - "nop;nop;nop;nop\n\t" - "nop;nop;nop;nop"); - + nops(8); irqstat = read_sysreg_s(ICC_IAR1_EL1); - - asm volatile( - "nop;nop;nop;nop"); + nops(4); mb(); return irqstat; |