[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGXJAmzBfv94FyCmAuekLHEDRbBf+_=YpHQHFtDoQb-qTcqZNA@mail.gmail.com>
Date: Mon, 1 Sep 2025 13:30:06 -0700
From: John Ousterhout <ouster@...stanford.edu>
To: Paolo Abeni <pabeni@...hat.com>
Cc: netdev@...r.kernel.org, edumazet@...gle.com, horms@...nel.org,
kuba@...nel.org
Subject: Re: [PATCH net-next v15 11/15] net: homa: create homa_utils.c
On Tue, Aug 26, 2025 at 4:53 AM Paolo Abeni <pabeni@...hat.com> wrote:
>
> On 8/18/25 10:55 PM, John Ousterhout wrote:
> +/**
> > + * homa_spin() - Delay (without sleeping) for a given time interval.
> > + * @ns: How long to delay (in nanoseconds)
> > + */
> > +void homa_spin(int ns)
> > +{
> > + u64 end;
> > +
> > + end = homa_clock() + homa_ns_to_cycles(ns);
> > + while (homa_clock() < end)
> > + /* Empty loop body.*/
>
> cpu_relax();
Done; I have found at least one other place to use this as well.
-John-
Powered by blists - more mailing lists