powerpc/tm: Remove msr_tm_active()
authorBreno Leitao <leitao@debian.org>
Thu, 16 Aug 2018 17:21:07 +0000 (14:21 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Sep 2019 06:22:24 +0000 (08:22 +0200)
commit052bc385f97054973c0140c474e6d5de624130c8
treede5b0f03fce35c0b1d34791eaab8712d92a2cdab
parentf193e02265aacc1a9f49b1ab27dbd63974266cee
powerpc/tm: Remove msr_tm_active()

[ Upstream commit 5c784c8414fba11b62e12439f11e109fb5751f38 ]

Currently msr_tm_active() is a wrapper around MSR_TM_ACTIVE() if
CONFIG_PPC_TRANSACTIONAL_MEM is set, or it is just a function that
returns false if CONFIG_PPC_TRANSACTIONAL_MEM is not set.

This function is not necessary, since MSR_TM_ACTIVE() just do the same and
could be used, removing the dualism and simplifying the code.

This patchset remove every instance of msr_tm_active() and replaced it
by MSR_TM_ACTIVE().

Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/include/asm/reg.h
arch/powerpc/kernel/process.c