On Tue, Apr 10, 2018 at 09:17:00PM +0200, Paul Semel wrote:
> this function uses mspin_sleep to spin sleep for t milliseconds
> 
> Signed-off-by: Paul Semel <phen...@amazon.de>
> ---
> 
> Notes:
>     v4:
>     - new patch version
> 
>  common/time.c      | 6 ++++++
>  include/xtf/time.h | 1 +
>  2 files changed, 7 insertions(+)
> 
> diff --git a/common/time.c b/common/time.c
> index 87db124..7515eb0 100644
> --- a/common/time.c
> +++ b/common/time.c
> @@ -157,6 +157,12 @@ static inline void spin_sleep(uint64_t t)
>      nspin_sleep(nsec);
>  }
>  
> +static inline void mspin_sleep(uint64_t t)
> +{
> +    uint64_t nsec = MSEC_TO_NSEC(t);

Newline.

And IMO can be squashed into the previous patch.

Thanks, Roger.

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

Reply via email to