Explorar o código

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>
Dave Airlie %!s(int64=15) %!d(string=hai) anos
pai
achega
01d4503968
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/gpu/drm/radeon/atom.c

+ 1 - 1
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)++);
 	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);
 	else
 	else
 		schedule_timeout_uninterruptible(msecs_to_jiffies(count));
 		schedule_timeout_uninterruptible(msecs_to_jiffies(count));
 }
 }