diff options
author | Dave Airlie <airlied@redhat.com> | 2010-01-30 22:07:14 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-02-09 00:32:32 +0100 |
commit | 20d6c346f69ec68f3f4956c726d830c978f911a8 (patch) | |
tree | 1445ebbd3d205b1e445f755137915435a42ce8f8 /drivers | |
parent | drm/radeon/kms: take the pm mutex when using hw i2c (diff) | |
download | linux-20d6c346f69ec68f3f4956c726d830c978f911a8.tar.xz linux-20d6c346f69ec68f3f4956c726d830c978f911a8.zip |
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: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/radeon/atom.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/atom.c b/drivers/gpu/drm/radeon/atom.c index e3b44562d265..bd0c843872b2 100644 --- a/drivers/gpu/drm/radeon/atom.c +++ b/drivers/gpu/drm/radeon/atom.c @@ -640,7 +640,8 @@ static void atom_op_delay(atom_exec_context *ctx, int *ptr, int arg) uint8_t count = U8((*ptr)++); SDEBUG(" count: %d\n", count); if (arg == ATOM_UNIT_MICROSEC) - schedule_timeout_uninterruptible(usecs_to_jiffies(count)); + udelay(count); + // schedule_timeout_uninterruptible(usecs_to_jiffies(count)); else schedule_timeout_uninterruptible(msecs_to_jiffies(count)); } |