s390/mm: convert pgste locking functions to C
authorClaudio Imbrenda <imbrenda@linux.ibm.com>
Tue, 5 Dec 2023 17:32:52 +0000 (18:32 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Mon, 11 Dec 2023 13:33:07 +0000 (14:33 +0100)
commita6d27ea01a702b51b9dc102aebcae39151bea8e3
treee73b98eb31d2a4eda296e464a7217602b27dd2df
parent18564756ab328dfdc84d09b8150f5e4d2bb96753
s390/mm: convert pgste locking functions to C

Convert pgste_get_lock() and pgste_set_unlock() to C.

There is no real reasons to keep them in assembler. Having them in C
makes them more readable and maintainable, and better instructions are
used automatically when available.

Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Acked-by: Alexander Gordeev <agordeev@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Link: https://lore.kernel.org/r/20231205173252.62305-1-imbrenda@linux.ibm.com
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/mm/pgtable.c