drm/nouveau: drop use of DRM_UDELAY
authorSam Ravnborg <sam@ravnborg.org>
Sun, 19 May 2019 14:00:41 +0000 (16:00 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 23 Aug 2019 02:55:30 +0000 (12:55 +1000)
The DRM_UDELAY is a simple wrapper for udealy() and to be consistent
call udelay() direct like in may other places.
This avoids the need to pull in drm_os_linux.h when we later
drop drmP.h uses in nouveau.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Ben Skeggs <bskeggs@redhat.com>
Cc: nouveau@lists.freedesktop.org
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_dma.c

index 078f65d849ce4403839a9d857021612c7ce6e7c8..3c430a550a514c3310630f7be78a90fe2006eea3 100644 (file)
@@ -118,7 +118,7 @@ nv50_dma_push_wait(struct nouveau_channel *chan, int count)
                }
 
                if ((++cnt & 0xff) == 0) {
-                       DRM_UDELAY(1);
+                       udelay(1);
                        if (cnt > 100000)
                                return -EBUSY;
                }