diff options
author | Peter Zijlstra <[email protected]> | 2017-03-22 11:35:51 +0100 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2017-03-23 19:10:07 +0100 |
commit | 5293c2efda37775346885c7e924d4ef7018ea60b (patch) | |
tree | 77868b67d43f614989c465d06415d6e1a90f5c4b /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
parent | fffa954fb528963c2fb7b0c0084eb77e2be7ab52 (diff) |
futex,rt_mutex: Provide futex specific rt_mutex API
Part of what makes futex_unlock_pi() intricate is that
rt_mutex_futex_unlock() -> rt_mutex_slowunlock() can drop
rt_mutex::wait_lock.
This means it cannot rely on the atomicy of wait_lock, which would be
preferred in order to not rely on hb->lock so much.
The reason rt_mutex_slowunlock() needs to drop wait_lock is because it can
race with the rt_mutex fastpath, however futexes have their own fast path.
Since futexes already have a bunch of separate rt_mutex accessors, complete
that set and implement a rt_mutex variant without fastpath for them.
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions