diff options
author | Dave Airlie <airlied@redhat.com> | 2010-01-31 07:07:14 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-02-18 15:00:08 +1000 |
commit | 01d4503968f471f876fb44335800d2cf8dc5a2ce (patch) | |
tree | 5a3334b66f4725765f0812400ebbe6a388b7afdc /drivers/gpu | |
parent | e803e8b2628f3e9a42f45c5b7bb1f9821b08352c (diff) | |
download | op-kernel-dev-01d4503968f471f876fb44335800d2cf8dc5a2ce.zip op-kernel-dev-01d4503968f471f876fb44335800d2cf8dc5a2ce.tar.gz |
drm/radeon/kms: use udelay for short delays
For usec delays use udelay instead of scheduling, this should
allow reclocking to happen faster. This also was the cause
of reported 33s delays at bootup on certain systems.
fixes: freedesktop.org bug 25506
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | 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 2a3df55..7f152f6 100644 --- a/drivers/gpu/drm/radeon/atom.c +++ b/drivers/gpu/drm/radeon/atom.c @@ -643,7 +643,7 @@ 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); else schedule_timeout_uninterruptible(msecs_to_jiffies(count)); } |