locking/ww_mutex: Abstract out mutex types
authorPeter Zijlstra <peterz@infradead.org>
Sun, 15 Aug 2021 21:28:50 +0000 (23:28 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 17 Aug 2021 17:05:00 +0000 (19:05 +0200)
commitbdb189148ded4ffa826a1387074c795fda43b3ba
treed4a3eb8efb925406f70c195af9d84f04452fbc20
parent9934ccc75cec2bafac552c2130835630530c4f7e
locking/ww_mutex: Abstract out mutex types

Some ww_mutex helper functions use pointers for the underlying mutex and
mutex_waiter. The upcoming rtmutex based implementation needs to share
these functions. Add and use defines for the types and replace the direct
types in the affected functions.

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.678720245@linutronix.de
kernel/locking/ww_mutex.h