powerpc: Simplify TM restore checks
authorAnton Blanchard <anton@samba.org>
Thu, 29 Oct 2015 00:43:58 +0000 (11:43 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 1 Dec 2015 02:52:24 +0000 (13:52 +1100)
commitb86fd2bd03021ce906bfa0c1456ec38329e31b30
tree8c1d3fc1c7671c0546145fa32a27c9973a41942c
parentaf1bbc3dd3d501d27da72e1764afe5f5b0d3882d
powerpc: Simplify TM restore checks

Instead of having multiple giveup_*_maybe_transactional() functions,
separate out the TM check into a new function called
check_if_tm_restore_required().

This will make it easier to optimise the giveup_*() functions in a
subsequent patch.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/process.c