]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: cleanup hw_irq.h
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 29 Aug 2019 08:45:13 +0000 (08:45 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 18 Nov 2019 11:27:52 +0000 (22:27 +1100)
commit678da991aa1b29c3abaf9bc8f64b9f17be72c564
tree708845af5949cacdf74bc9d0a3c788f5638c6e9f
parentf64e9f68422a1db2f685784e26ba93a6807698e8
powerpc: cleanup hw_irq.h

SET_MSR_EE() is just use in this file and doesn't provide
any added value compared to mtmsr(). Drop it.

Add a wrtee() inline function to use wrtee/wrteei insn.

Replace #ifdefs by IS_ENABLED()

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/a28a20514d5f6df9629c1a117b667e48c4272736.1567068137.git.christophe.leroy@c-s.fr
arch/powerpc/include/asm/hw_irq.h
arch/powerpc/include/asm/reg.h