Re: [spice-server 2/3] utils: Remove spice_get_monotonic_time_ms

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

 



> 
> This is a thin wrapper over g_get_monotonic_time_ms, and is called only
> once, so we can call directly g_get_monotonic_time_ms instead.

Acked-by: Frediano Ziglio <fziglio@xxxxxxxxxx>

Frediano

> ---
>  server/reds.c  | 2 +-
>  server/utils.h | 5 -----
>  2 files changed, 1 insertion(+), 6 deletions(-)
> 
> diff --git a/server/reds.c b/server/reds.c
> index 4f890348a..4645f1c6b 100644
> --- a/server/reds.c
> +++ b/server/reds.c
> @@ -3004,7 +3004,7 @@ static void migrate_timeout(void *opaque)
>  
>  uint32_t reds_get_mm_time(void)
>  {
> -    return spice_get_monotonic_time_ms();
> +    return g_get_monotonic_time() / 1000;
>  }
>  
>  void reds_enable_mm_time(RedsState *reds)
> diff --git a/server/utils.h b/server/utils.h
> index 36ad1d83f..5cb0eb0ee 100644
> --- a/server/utils.h
> +++ b/server/utils.h
> @@ -50,11 +50,6 @@ static inline red_time_t spice_get_monotonic_time_ns(void)
>  
>  #define MSEC_PER_SEC 1000
>  
> -static inline red_time_t spice_get_monotonic_time_ms(void)
> -{
> -    return g_get_monotonic_time() / 1000;
> -}
> -
>  int rgb32_data_has_alpha(int width, int height, size_t stride,
>                           const uint8_t *data, int *all_set_out);
>  
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]