summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/radeon/atom.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/drm/radeon/atom.c')
-rw-r--r--sys/dev/pci/drm/radeon/atom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/radeon/atom.c b/sys/dev/pci/drm/radeon/atom.c
index caddef7eb88..290d47c8c7f 100644
--- a/sys/dev/pci/drm/radeon/atom.c
+++ b/sys/dev/pci/drm/radeon/atom.c
@@ -665,9 +665,9 @@ static void atom_op_delay(atom_exec_context *ctx, int *ptr, int arg)
unsigned count = U8((*ptr)++);
SDEBUG(" count: %d\n", count);
if (arg == ATOM_UNIT_MICROSEC)
- DRM_UDELAY(count);
+ udelay(count);
else if (!drm_can_sleep())
- DRM_MDELAY(count);
+ mdelay(count);
else
drm_msleep(count, "atomop");
}