From: Maarten Lankhorst Date: Tue, 1 Jul 2014 10:57:54 +0000 (+0200) Subject: reservation: update api and add some helpers X-Git-Tag: omap-for-v3.17/fixes-against-rc2~167^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04a5faa8cbe5a8eaf152cb88959ba6360c26e702;p=pandora-kernel.git 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 Acked-by: Sumit Semwal Acked-by: Daniel Vetter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed