From: Stefan Wahren Date: Sat, 31 Mar 2018 20:09:45 +0000 (+0200) Subject: staging: vchiq_arm: Avoid long udelay X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=81244ba0f03691ad7b6a4cd175b6281eb4241c5c;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c index 09d11cd538cf..4b16aa426a6d 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -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,