drm/radeon: fix & improve ih ring handling v3

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 atomic again after finding & fixing the real bug.

Signed-off-by: Christian Koenig <christian.koenig@amd.com>
This commit is contained in:
Christian Koenig 2012-05-16 21:45:24 +02:00 • committed by Christian König
commit c20dc3698d
5 changed files with 41 additions and 47 deletions