powerpc/irq: Don't open code irq_soft_mask helpers
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 18 May 2022 08:32:27 +0000 (10:32 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 29 Jun 2022 06:57:09 +0000 (16:57 +1000)
commitef5b570d3700fbb8628a58da0487486ceeb713cd
tree0ea8bf80e0f67d970d2f19444e4ddd51ae6e1f15
parent98552307e3a72d480e72744bf5da2a865822f496
powerpc/irq: Don't open code irq_soft_mask helpers

Use READ_ONCE() and WRITE_ONCE() instead of open coding
read and write of local PACA irq_soft_mask.

For the write, add a barrier to keep the memory clobber
that was there previously.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/e2454434992cc932a5a34b695ae981c0b2f4c28e.1652862729.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/hw_irq.h