Re: [PATCH] staging: rtl8723bs: Replace msleep with usleep_range
From: Ethan Tidmore
Date: Thu Mar 19 2026 - 16:24:02 EST
On Thu Mar 19, 2026 at 2:54 PM CDT, AyushMukkanwar wrote:
> The checkpatch.pl script flagged a warning regarding the use of
> msleep() for less than 20ms. msleep() relies on jiffies and can
> be inaccurate for short durations, leading to inefficient delays.
>
> Replace msleep(10) with usleep_range(10000, 12000) to allow for
> timer coalescing. This gives the kernel scheduler a 2ms window
> to group wakeups, improving overall system power efficiency
> while maintaining the required 10ms minimum delay.
>
> Signed-off-by: AyushMukkanwar <ayushmukkanwar@xxxxxxxxx>
> ---
Greg has already NAKed this change.
Thanks,
ET