int drm_lock_transfer(drm_device_t *dev, __volatile__ unsigned int *lock, unsigned int context)
static int drm_lock_transfer(drm_device_t *dev, __volatile__ unsigned int *lock, unsigned int context)
int drm_lock_transfer(drm_device_t *dev,		       __volatile__ unsigned int *lock, unsigned int context){	unsigned int old, new, prev;	dev->lock.filp = NULL;	do {		old  = *lock;		new  = context | _DRM_LOCK_HELD;		prev = cmpxchg(lock, old, new);	} while (prev != old);	return 1;}