summaryrefslogtreecommitdiff
path: root/kernel/rtmutex_common.h
diff options
context:
space:
mode:
authorDarren Hart <dvhltc@us.ibm.com>2009-04-03 20:39:52 (GMT)
committerThomas Gleixner <tglx@linutronix.de>2009-04-06 09:14:01 (GMT)
commit1a52084d0919c2799258737c21fb328a9de159b5 (patch)
tree1b5351a83913d1c583912b933ad838d2a024286b /kernel/rtmutex_common.h
parent4b1c486b3587d2abf50bee4a05eb488cd4045f2c (diff)
downloadlinux-fsl-qoriq-1a52084d0919c2799258737c21fb328a9de159b5.tar.xz
futex: split out atomic logic from futex_lock_pi()
Refactor the atomic portion of futex_lock_pi() into futex_lock_pi_atomic(). This logic will be needed by requeue_pi, so modularize it to reduce code duplication. The only significant change is passing of the task to try and take the lock for. This simplifies the -EDEADLK test as if the lock is owned by task t, it's a deadlock, regardless of if we are doing requeue pi or not. This patch updates the corresponding comment accordingly. Signed-off-by: Darren Hart <dvhltc@us.ibm.com> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/rtmutex_common.h')
0 files changed, 0 insertions, 0 deletions