futex: Make syscall entry points less convoluted
authorThomas Gleixner <tglx@linutronix.de>
Thu, 22 Apr 2021 19:44:21 +0000 (21:44 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 6 May 2021 18:19:04 +0000 (20:19 +0200)
commit51cf94d16860a324e97d1b670d88f1f2b643bc32
tree44b2ed95cbebba24dffdf2af414e25fdeaeb7a27
parentb097d5ed33561507eeffc77120a8c16c2f0f2c4c
futex: Make syscall entry points less convoluted

The futex and the compat syscall entry points do pretty much the same
except for the timespec data types and the corresponding copy from
user function.

Split out the rest into inline functions and share the functionality.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20210422194705.244476369@linutronix.de
kernel/futex.c