On 7/6/24 02:04, Herbert Xu wrote:
On Wed, Jun 19, 2024 at 07:31:57PM +0200, Helge Deller wrote:+ t0 = ktime_get(); + /* delay start until time has advanced */ + do { start = ktime_get(); } while (start == t0);Please rewrite this loop in the usual kernel coding style.
Ok.
What about adding a cpu_relax() in there if ktime_get doesn't advance? Something like while ((start = ktime_get()) == t0) cpu_relax();
Yes, looks better. Will send updated patch. Helge