[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 5/7] add spin_sleep function to time manager



On Wed, Apr 04, 2018 at 03:50:52PM +0000, Pawel Wieczorkiewicz wrote:
> From: Paul Semel <phentex@xxxxxxxxx>

Missing commit log.

> Signed-off-by: Paul Semel <phentex@xxxxxxxxx>
> 
> cr https://code.amazon.com/reviews/CR-786226
> ---
>  common/time.c | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
> 
> diff --git a/common/time.c b/common/time.c
> index db28d78..6aa1648 100644
> --- a/common/time.c
> +++ b/common/time.c
> @@ -124,6 +124,20 @@ static inline void nspin_sleep(uint64_t t)
>          curr = since_boot_time();
>  }
>  
> +#if defined(__i386__)
> +static inline void spin_sleep(uint32_t t)
> +#else
> +static inline void spin_sleep(uint64_t t)
> +#endif
> +{
> +#if defined(__i386__)
> +    uint32_t nsec = t * 1000000000;
> +#else
> +    uint64_t nsec = t * 1000000000ul;

This value should be in a define with a proper name.

Thanks, Roger.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.