staging: vchiq_arm: Avoid long udelay
authorStefan Wahren <stefan.wahren@i2se.com>
Sat, 31 Mar 2018 20:09:45 +0000 (22:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 13:48:20 +0000 (15:48 +0200)
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>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c

index 09d11cd538cf566e0423f03a30b70e236a547cbb..4b16aa426a6debff5674942b5faf9b117bd17595 100644 (file)
@@ -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,