aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/atom.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/radeon/atom.c')
-rw-r--r--drivers/gpu/drm/radeon/atom.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/atom.c b/drivers/gpu/drm/radeon/atom.c
index 14cc88aaf3a7..d1bd239cd9e9 100644
--- a/drivers/gpu/drm/radeon/atom.c
+++ b/drivers/gpu/drm/radeon/atom.c
@@ -665,6 +665,8 @@ static void atom_op_delay(atom_exec_context *ctx, int *ptr, int arg)
665 SDEBUG(" count: %d\n", count); 665 SDEBUG(" count: %d\n", count);
666 if (arg == ATOM_UNIT_MICROSEC) 666 if (arg == ATOM_UNIT_MICROSEC)
667 udelay(count); 667 udelay(count);
668 else if (!drm_can_sleep())
669 mdelay(count);
668 else 670 else
669 msleep(count); 671 msleep(count);
670} 672}