]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
futex,rt_mutex: Introduce rt_mutex_init_waiter()
authorPeter Zijlstra <peterz@infradead.org>
Mon, 2 Aug 2021 13:46:16 +0000 (21:46 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Aug 2021 15:39:42 +0000 (17:39 +0200)
commit50801cdc86003c4e20b9ae668cf2659d0218cfcc
treec529cde6fbb636429937d0cef6d69304bc479f9d
parent52937382542020d72bd8708dc10ac829d8b06ffe
futex,rt_mutex: Introduce rt_mutex_init_waiter()

[ Upstream commit 50809358dd7199aa7ce232f6877dd09ec30ef374 ]

Since there's already two copies of this code, introduce a helper now
before adding a third one.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: juri.lelli@arm.com
Cc: bigeasy@linutronix.de
Cc: xlpang@redhat.com
Cc: rostedt@goodmis.org
Cc: mathieu.desnoyers@efficios.com
Cc: jdesfossez@efficios.com
Cc: dvhart@infradead.org
Cc: bristot@redhat.com
Link: http://lkml.kernel.org/r/20170322104151.950039479@infradead.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Acked-by: Joe Korty <joe.korty@concurrent-rt.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/futex.c
kernel/locking/rtmutex.c
kernel/locking/rtmutex_common.h