diff options
author | Nicolai Hähnle <Nicolai.Haehnle@amd.com> | 2015-12-12 11:42:23 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2015-12-14 19:58:39 -0500 |
commit | eb227c554ee68b6719c9298947f344e713fa712c (patch) | |
tree | 76ed6436fa099e806f15735c77f312536e5eca3c | |
parent | 21de54b3c4d08d2b20e80876c6def0b421dfec2e (diff) |
drm/ttm: fix documentation of ttm_bo_reserve
Previously, the comment was inconsistent. EDEADLK is what the ww_mutex
mechanism really returns.
Signed-off-by: Nicolai Hähnle <Nicolai.Haehnle@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | include/drm/ttm/ttm_bo_driver.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h index 813042cede57..3d4bf08aa21f 100644 --- a/include/drm/ttm/ttm_bo_driver.h +++ b/include/drm/ttm/ttm_bo_driver.h | |||
@@ -826,10 +826,10 @@ static inline int __ttm_bo_reserve(struct ttm_buffer_object *bo, | |||
826 | * reserved, the validation sequence is checked against the validation | 826 | * reserved, the validation sequence is checked against the validation |
827 | * sequence of the process currently reserving the buffer, | 827 | * sequence of the process currently reserving the buffer, |
828 | * and if the current validation sequence is greater than that of the process | 828 | * and if the current validation sequence is greater than that of the process |
829 | * holding the reservation, the function returns -EAGAIN. Otherwise it sleeps | 829 | * holding the reservation, the function returns -EDEADLK. Otherwise it sleeps |
830 | * waiting for the buffer to become unreserved, after which it retries | 830 | * waiting for the buffer to become unreserved, after which it retries |
831 | * reserving. | 831 | * reserving. |
832 | * The caller should, when receiving an -EAGAIN error | 832 | * The caller should, when receiving an -EDEADLK error |
833 | * release all its buffer reservations, wait for @bo to become unreserved, and | 833 | * release all its buffer reservations, wait for @bo to become unreserved, and |
834 | * then rerun the validation with the same validation sequence. This procedure | 834 | * then rerun the validation with the same validation sequence. This procedure |
835 | * will always guarantee that the process with the lowest validation sequence | 835 | * will always guarantee that the process with the lowest validation sequence |