mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
staging: greybus: loopback: fix broken udelay
am: 2893a55e39
Change-Id: I6eddb42dbb3e57bc51b7dbf0b932a30b540ee78c
This commit is contained in:
@@ -1051,8 +1051,13 @@ static int gb_loopback_fn(void *data)
|
||||
gb_loopback_calculate_stats(gb, !!error);
|
||||
}
|
||||
gb->send_count++;
|
||||
if (us_wait)
|
||||
udelay(us_wait);
|
||||
|
||||
if (us_wait) {
|
||||
if (us_wait < 20000)
|
||||
usleep_range(us_wait, us_wait + 100);
|
||||
else
|
||||
msleep(us_wait / 1000);
|
||||
}
|
||||
}
|
||||
|
||||
gb_pm_runtime_put_autosuspend(bundle);
|
||||
|
||||
Reference in New Issue
Block a user