dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Ben Skeggs <bskeggs@redhat.com>, dri-devel@lists.freedesktop.org
Cc: David Airlie <airlied@linux.ie>,
	nouveau@lists.freedesktop.org, Sam Ravnborg <sam@ravnborg.org>
Subject: [PATCH v1 1/4] drm/nouveau: drop use of DRM_UDELAY
Date: Sun, 19 May 2019 16:00:41 +0200	[thread overview]
Message-ID: <20190519140044.22142-2-sam@ravnborg.org> (raw)
In-Reply-To: <20190519140044.22142-1-sam@ravnborg.org>

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
---
 drivers/gpu/drm/nouveau/nouveau_dma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/nouveau/nouveau_dma.c b/drivers/gpu/drm/nouveau/nouveau_dma.c
index 078f65d849ce..3c430a550a51 100644
--- a/drivers/gpu/drm/nouveau/nouveau_dma.c
+++ b/drivers/gpu/drm/nouveau/nouveau_dma.c
@@ -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;
 		}
-- 
2.20.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2019-05-19 14:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-19 14:00 [PATCH v1 0/4] drm/nouveau: drop use of drmP.h Sam Ravnborg
2019-05-19 14:00 ` Sam Ravnborg [this message]
2019-05-19 14:00 ` [PATCH v1 2/4] drm/nouveau: drop drmP.h from nouveau_drv.h Sam Ravnborg
     [not found] ` <20190519140044.22142-1-sam-uyr5N9Q2VtJg9hUCZPvPmw@public.gmane.org>
2019-05-19 14:00   ` [PATCH v1 3/4] drm/nouveau: drop drmP.h from all header files Sam Ravnborg
2019-05-19 14:00 ` [PATCH v1 4/4] drm/nouveau: drop use of drmp.h Sam Ravnborg
2019-05-20  7:34 ` [Nouveau] [PATCH v1 0/4] drm/nouveau: drop use of drmP.h Ben Skeggs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190519140044.22142-2-sam@ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=airlied@linux.ie \
    --cc=bskeggs@redhat.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=nouveau@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox