Thread (2 messages) 2 messages, 2 authors, 9d ago

Re: [PATCH] staging: fbtft: fb_ra8875: replace udelay with usleep_range

From: Andy Shevchenko <hidden>
Date: 2026-07-16 18:37:32
Also in: dri-devel, linux-staging, lkml

On Thu, Jul 16, 2026 at 01:08:33PM +0200, Selby Mashiki via B4 Relay wrote:
udelay() busy-waits for the specified duration, consuming CPU cycles
unnecessarily. usleep_range() is preferred for delays that can sleep,
as it allows the scheduler to run other tasks during the wait.

Replace two instances of udelay(100) with usleep_range(100, 200) to
use the preferred sleeping delay function.
NAK. Read mailing list archives why.

-- 
With Best Regards,
Andy Shevchenko

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help