[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHp75VeWGAyzAFBYSQS7FGpU1eSRo1Egrh44hUpXJgYZhFEkwg@mail.gmail.com>
Date: Tue, 21 Oct 2025 11:50:11 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Olle Lukowski <olle@...owski.dev>
Cc: Andy Shevchenko <andy@...nel.org>, Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
dri-devel@...ts.freedesktop.org, linux-fbdev@...r.kernel.org,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] staging: fbtft: fb_ra8875: replace udelay with usleep_range
On Mon, Oct 20, 2025 at 10:16 PM Olle Lukowski <olle@...owski.dev> wrote:
>
> Replace udelay(100) calls with usleep_range(100, 200) to allow the
> scheduler to yield instead of busy-waiting. This is the preferred API for
> sleep durations above 10 microseconds.
...
> - udelay(100);
> + usleep_range(100, 200);
Besides what Greg said, the function in similar changes should be
fsleep(), it will automatically choose the best low-level API for the
given delay.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists