Re: [PATCH] staging: rtl8723bs: replace msleep with usleep_range
From: Ethan Tidmore
Date: Sat Mar 14 2026 - 16:56:32 EST
On Sat Mar 14, 2026 at 12:11 AM CDT, Marcos Andrade wrote:
> The msleep() function is not recommended for delays under 20ms
> as it may sleep for longer than desired. Replace msleep(10) with
> usleep_range(10000, 11000) to ensure a more precise delay and
> better kernel scheduling behavior.
> This resolves a checkpatch.pl warning.
>
> Signed-off-by: Marcos Andrade <marcosandrade95963@xxxxxxxxx>
...
> +#include "linux/delay.h"
This would be <linux/delay.h>.
> #include <drv_types.h>
> #include <hal_btcoex.h>
> #include <linux/jiffies.h>
This has already came up before and Greg decided to drop it. [1]
Thanks,
ET
[1] https://lore.kernel.org/linux-staging/20260214173139.49094-1-ofekalm100@xxxxxxxxx/