locking/ww_mutex: Split out the W/W implementation logic into kernel/locking/ww_mutex.h
authorPeter Zijlstra (Intel) <peterz@infradead.org>
Tue, 17 Aug 2021 14:31:54 +0000 (16:31 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 17 Aug 2021 17:04:46 +0000 (19:04 +0200)
commit2674bd181f3338dc2c58a59caa766dc9d5779784
tree490dc06fc6dc9d3b2eb0c881e6b5c4a179e0b0ad
parentaaa77de10b7c86fa779b2108802fa9e785fbe2e9
locking/ww_mutex: Split out the W/W implementation logic into kernel/locking/ww_mutex.h

Split the W/W mutex helper functions out into a separate header file, so
they can be shared with a rtmutex based variant 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.396893399@linutronix.de
kernel/locking/mutex.c
kernel/locking/ww_mutex.h [new file with mode: 0644]