[PATCH] radeon: Use mdelay() instead of msleep() in atom_op_delay().
Michel Dänzer
michel at daenzer.net
Tue Jan 3 10:04:00 PST 2012
From: Michel Dänzer <michel.daenzer at amd.com>
It can be called from atomic context, e.g. when switching to console for panic
output.
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=43941
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
drivers/gpu/drm/radeon/atom.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/radeon/atom.c b/drivers/gpu/drm/radeon/atom.c
index 14cc88a..d99dbb6 100644
--- a/drivers/gpu/drm/radeon/atom.c
+++ b/drivers/gpu/drm/radeon/atom.c
@@ -666,7 +666,7 @@ static void atom_op_delay(atom_exec_context *ctx, int *ptr, int arg)
if (arg == ATOM_UNIT_MICROSEC)
udelay(count);
else
- msleep(count);
+ mdelay(count);
}
static void atom_op_div(atom_exec_context *ctx, int *ptr, int arg)
--
1.7.7.3
More information about the dri-devel
mailing list