drm/nouveau: update cpu_filp with cmpxchg
commit91f90504b48cac89773a7980378cebcea73669e8
authorLuca Barbieri <luca@luca-barbieri.com>
Wed, 10 Feb 2010 04:24:35 +0000 (10 05:24 +0100)
committerLuca Barbieri <luca@luca-barbieri.com>
Tue, 23 Feb 2010 13:24:34 +0000 (23 14:24 +0100)
tree4383dd92d03b33f971e3e9e16e3c4fbcd3abf682
parentd65ffb4fa31578ee78acf97d1065f6ca935c9318
drm/nouveau: update cpu_filp with cmpxchg

This patch atomically updates cpu_filp using cmpxchg.
This will allow to make cpu_prep and cpu_fini unlocked.
drivers/gpu/drm/nouveau/nouveau_gem.c