[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210914213532.396654-1-gascoar@gmail.com>
Date: Tue, 14 Sep 2021 18:35:26 -0300
From: Gaston Gonzalez <gascoar@...il.com>
To: linux-staging@...ts.linux.dev
Cc: gregkh@...uxfoundation.org, nsaenz@...nel.org,
stefan.wahren@...e.com, arnd@...db.de, dan.carpenter@...cle.com,
ojaswin98@...il.com, amarjargal16@...il.com,
linux-rpi-kernel@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org,
bcm-kernel-feedback-list@...adcom.com,
linux-kernel@...r.kernel.org, gascoar@...il.com
Subject: [PATCH 1/8] staging: vchiq_arm: replace sleep() with usleep_range()
usleep_range() should be used instead of sleep() when sleepings range
from 10 us to 20 ms, [1].
Reported by checkpatch.pl
[1] Documentation/timers/timers-howto.txt
---
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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 b25369a13452..0214ae37e01f 100644
--- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
+++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
@@ -824,7 +824,7 @@ vchiq_bulk_transmit(unsigned int handle, const void *data, unsigned int size,
if (status != VCHIQ_RETRY)
break;
- msleep(1);
+ usleep_range(1000, 1100);
}
return status;
@@ -861,7 +861,7 @@ enum vchiq_status vchiq_bulk_receive(unsigned int handle, void *data,
if (status != VCHIQ_RETRY)
break;
- msleep(1);
+ usleep_range(1000, 1100);
}
return status;
--
2.33.0
Powered by blists - more mailing lists