reservation: add reservation_object_get_excl_rcu()
authorRob Clark <robdclark@gmail.com>
Thu, 31 Mar 2016 20:23:51 +0000 (16:23 -0400)
committerRob Clark <robdclark@gmail.com>
Sun, 8 May 2016 14:16:02 +0000 (10:16 -0400)
commit824815c4cd13e384ef5a4be725ec4b06e4ad2c2a
treeba1e68f32df845da41e8b8c9a0922713cca27111
parentfeb46f02c3fa70e6d3e5307cb105cc69c60a3fe3
reservation: add reservation_object_get_excl_rcu()

In the atomic modesetting path, each driver simply wants to grab a ref
to the exclusive fence from a reservation object to store in the incoming
drm_plane_state, without doing the whole RCU dance.  Since each driver
will need to do this, lets make a helper.

v2: rename to _rcu instead of _unlocked to be more consistent

Signed-off-by: Rob Clark <robdclark@gmail.com>
Acked-by: Sumit Semwal <sumit.semwal@linaro.org>
include/linux/reservation.h