reservation: update api and add some helpers
Move the list of shared fences to a struct, and return it in reservation_object_get_list(). Add reservation_object_get_excl to get the exclusive fence. Add reservation_object_reserve_shared(), which reserves space in the reservation_object for 1 more shared fence. reservation_object_add_shared_fence() and reservation_object_add_excl_fence() are used to assign a new fence to a reservation_object pointer, to complete a reservation. Changes since v1: - Add reservation_object_get_excl, reorder code a bit. Signed-off-by:Maarten Lankhorst <maarten.lankhorst@canonical.com> Acked-by:
Sumit Semwal <sumit.semwal@linaro.org> Acked-by:
Daniel Vetter <daniel@ffwll.ch> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
- Documentation/DocBook/device-drivers.tmpl 1 addition, 0 deletionsDocumentation/DocBook/device-drivers.tmpl
- drivers/dma-buf/dma-buf.c 24 additions, 11 deletionsdrivers/dma-buf/dma-buf.c
- drivers/dma-buf/reservation.c 155 additions, 1 deletiondrivers/dma-buf/reservation.c
- include/linux/reservation.h 49 additions, 7 deletionsinclude/linux/reservation.h
Loading
Please register or sign in to comment