locking/ww_mutex: Abstract out mutex accessors
authorPeter Zijlstra <peterz@infradead.org>
Sun, 15 Aug 2021 21:28:49 +0000 (23:28 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 17 Aug 2021 17:04:57 +0000 (19:04 +0200)
commit9934ccc75cec2bafac552c2130835630530c4f7e
treefa86960b6df2226a692c0fa07cd600fc53f68682
parent843dac28f90ef80535b0aee0b78446f1770c8611
locking/ww_mutex: Abstract out mutex accessors

Move the mutex related access from various ww_mutex functions into helper
functions so they can be substituted for rtmutex based ww_mutex later.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210815211304.622477030@linutronix.de
kernel/locking/ww_mutex.h