drm/radeon: improve ring lockup detection code v2
authorChristian König <christian.koenig@amd.com>
Tue, 18 Feb 2014 14:24:06 +0000 (15:24 +0100)
committerChristian König <christian.koenig@amd.com>
Fri, 28 Feb 2014 09:53:16 +0000 (10:53 +0100)
commitaee4aa73a1af3176cc3eea5833cae596b4b7dd22
tree47b15679aef32ca0399b18c9ca07eec7ae34461e
parent4d538b79197901fecc42e746d515d07fd1089b62
drm/radeon: improve ring lockup detection code v2

Use atomics and jiffies_64, so that we don't need to have the
ring mutex locked any more and avoid wrap arounds.

v2: fix some checkpatch warnings

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_ring.c