[PATCH 6/9] drm/radeon: fix & improve ih ring handling v3

2012-06-14 Thread Christian König
From: Christian Koenig The spinlock was actually there to protect the rptr, but rptr was read outside of the locked area. Also we don't really need a spinlock here, an atomic should to quite fine since we only need to prevent it from being reentrant. v2: Keep the spinlock v3: Back to an ato

[PATCH 6/9] drm/radeon: fix & improve ih ring handling v3

2012-06-14 Thread Christian König
From: Christian Koenig The spinlock was actually there to protect the rptr, but rptr was read outside of the locked area. Also we don't really need a spinlock here, an atomic should to quite fine since we only need to prevent it from being reentrant. v2: Keep the spinlock v3: Back to an ato