futex: Consolidate duplicated timer setup code
authorWaiman Long <longman@redhat.com>
Tue, 28 May 2019 16:03:45 +0000 (12:03 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 28 May 2019 18:12:00 +0000 (11:12 -0700)
commit5ca584d935c32906d114924dc0e1dbfcbb13fdb2
tree3798f09c5d4d3a4142f01a784d1a76e05d371fa2
parentc0090c4c85c27d1fa3d785c935501b7207cd2869
futex: Consolidate duplicated timer setup code

Add a new futex_setup_timer() helper function to consolidate all the
hrtimer_sleeper setup code.

Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Darren Hart <dvhart@infradead.org>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Link: https://lkml.kernel.org/r/20190528160345.24017-1-longman@redhat.com
kernel/futex.c