]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Make eh value more explicit when using lwarx
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 2 Aug 2022 09:02:38 +0000 (11:02 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 10 Aug 2022 05:32:20 +0000 (15:32 +1000)
commit2bf4c07bc1fbe25d0ad6e4bb5047934f08600f98
treedcc7c89e5212236b204a825133efe090b657b834
parent7a8cf4ba0317e9b51fb67a43dc4e83ab56574232
powerpc: Make eh value more explicit when using lwarx

Just like the first patch of this series, define a local 'eh' in order
to make the code clearer.

And IS_ENABLED() returns either 1 or 0 so no need to do
IS_ENABLED(CONFIG_PPC64) ? 1 : 0.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
[mpe: Use symbolic names, use 'n' constraint per Segher]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/629befaa2d05e2922346e58a383886510d6af55a.1659430931.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/atomic.h