[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v4 5/7] add spin_sleep function to time manager
On Tue, Apr 10, 2018 at 09:16:59PM +0200, Paul Semel wrote: > this function uses nspin_sleep to spin sleep for t seconds IMO you can squash this into the previous patch. > Signed-off-by: Paul Semel <phentex@xxxxxxxxx> > --- > > Notes: > v4: > - new patch version > > common/time.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/common/time.c b/common/time.c > index 232e134..87db124 100644 > --- a/common/time.c > +++ b/common/time.c > @@ -151,6 +151,12 @@ static inline void nspin_sleep(uint64_t t) > asm volatile ("pause"); > } > > +static inline void spin_sleep(uint64_t t) > +{ > + uint64_t nsec = SEC_TO_NSEC(t); Newline. Thanks, Roger. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |