drm: Add Reusable task barrier.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Fri, 6 Dec 2019 17:26:33 +0000 (12:26 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Dec 2019 21:09:12 +0000 (16:09 -0500)
commit368fd0aad1bec2bb30a3e5e905b2aedd8d15feb7
tree64cf72b9875f0385a46aeea5efc490c581f9d8a0
parent041a62bc0603544c97ac407df67bd60398ce0668
drm: Add Reusable task barrier.

It is used to synchronize N threads at a rendevouz point before execution
of critical code that has to be started by all the threads at approximatly
the same time.

v2: Remove mention of reset use case, improve doc.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Le Ma <Le.Ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
include/drm/task_barrier.h [new file with mode: 0644]