powerpc/mm/slice: Switch to 3-operand slice bitops helpers
authorNicholas Piggin <npiggin@gmail.com>
Wed, 7 Mar 2018 01:37:14 +0000 (11:37 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 13 Mar 2018 12:43:07 +0000 (23:43 +1100)
commitb8c93549142077da10a02329378a8cfa46ce511c
tree5607375446b3b315d4e60d250422dbe4af40e966
parentae3066bd1cbe58e596c791f72a36e576df5d9ed1
powerpc/mm/slice: Switch to 3-operand slice bitops helpers

This converts the slice_mask bit operation helpers to be the usual
3-operand kind, which allows 2 inputs to set a different output
without an extra copy, which is used in the next patch.

Adds slice_copy_mask, which will be used in the next patch.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/slice.c