From: Jerome Glisse Date: Mon, 2 Jul 2012 16:45:19 +0000 (-0400) Subject: drm/radeon: add an exclusive lock for GPU reset v2 X-Git-Tag: v3.6-rc1~83^2~36^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dee53e7fb3ee01b83c75a8e8df8c444049d38058;p=pandora-kernel.git drm/radeon: add an exclusive lock for GPU reset v2 GPU reset need to be exclusive, one happening at a time. For this add a rw semaphore so that any path that trigger GPU activities have to take the semaphore as a reader thus allowing concurency. The GPU reset path take the semaphore as a writer ensuring that no concurrent reset take place. v2: init rw semaphore Signed-off-by: Jerome Glisse Reviewed-by: Christian König Reviewed-by: Alex Deucher --- Reading git-diff-tree failed