Re: [PATCH] staging: fbtft: Change udelay() to usleep_range()

From
Matthew Wilcox <willy@infradead.org>
Date
2026-01-13 17:53:58
Also in
dri-devel, linux-staging, lkml
Reply to
Gideon Adjei, 2026-01-13
On Tue, Jan 13, 2026 at 09:27:56AM -0800, Gideon Adjei wrote:
Replace udelay() calls >= 100us with usleep_range() to avoid busy-waiting.
This allows the scheduler to run other tasks while waiting.
Your commit message omits how you know it's safe to sleep in these
situations.  Are we holding a spinlock or being called in interrupt
context, for example?
Thread (2 messages) 2 messages, 2 authors, last reply 2026-01-13
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help