mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
staging: vchiq_arm: Avoid long udelay
vchiq_initialise() is used in non-interrupt context, so we can replace udelay with usleep_range as suggested by timers-howto.txt. Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
77f8969220
commit
81244ba0f0
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ VCHIQ_STATUS_T vchiq_initialise(VCHIQ_INSTANCE_T *instance_out)
|
|||
state = vchiq_get_state();
|
||||
if (state)
|
||||
break;
|
||||
udelay(500);
|
||||
usleep_range(500, 600);
|
||||
}
|
||||
if (i == VCHIQ_INIT_RETRIES) {
|
||||
vchiq_log_error(vchiq_core_log_level,
|
||||
|
|
Loading…
Reference in a new issue