Commit 20d6c346 authored by Dave Airlie's avatar Dave Airlie

drm/radeon/kms: use udelay for short delays

For usec delays use udelay instead of scheduling, this should
allow reclocking to happen faster.
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 57fcab62
...@@ -640,7 +640,8 @@ static void atom_op_delay(atom_exec_context *ctx, int *ptr, int arg) ...@@ -640,7 +640,8 @@ static void atom_op_delay(atom_exec_context *ctx, int *ptr, int arg)
uint8_t count = U8((*ptr)++); uint8_t count = U8((*ptr)++);
SDEBUG(" count: %d\n", count); SDEBUG(" count: %d\n", count);
if (arg == ATOM_UNIT_MICROSEC) if (arg == ATOM_UNIT_MICROSEC)
schedule_timeout_uninterruptible(usecs_to_jiffies(count)); udelay(count);
// schedule_timeout_uninterruptible(usecs_to_jiffies(count));
else else
schedule_timeout_uninterruptible(msecs_to_jiffies(count)); schedule_timeout_uninterruptible(msecs_to_jiffies(count));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment