]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9a5d593720c77287f205ecb825f951736d0635d1
tree0ea8bf80e0f67d970d2f19444e4ddd51ae6e1f15
parent5d9911a4b38306789e2cf8ad449dfc0e490794a4
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