s390/mm: add set_pte_bit()/clear_pte_bit() helper functions
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 21 Feb 2022 20:18:29 +0000 (21:18 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 1 Mar 2022 20:05:10 +0000 (21:05 +0100)
commitf29111f117aaafa2887e13923f6e88fc11f5e065
tree8cbd2366d6c52dd3aca1270a17adb896b600683b
parente2aaae2d3677563c1bb6cd15fbddd701381823be
s390/mm: add set_pte_bit()/clear_pte_bit() helper functions

Add set_pte_bit()/clear_pte_bit() and set_pXd_bit()/clear_pXd_bit
helper functions which are supposed to be used if bits within
ptes/pXds are set/cleared.
The only point of these helper functions is to get more readable
code. This is quite similar to what arm64 has.

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/pgtable.h