[ovs-dev] [PATCH v6 2/2] Minimize the number of time calls in time_poll()
Gaëtan Rivet
grive at u256.net
Thu Aug 5 16:54:42 UTC 2021
On Thu, Aug 5, 2021, at 15:53, anton.ivanov at cambridgegreys.com wrote:
> From: Anton Ivanov <anton.ivanov at cambridgegreys.com>
>
> time_poll() makes an excessive number of time_msec() calls
> which incur a performance penalty.
>
> 1. Avoid time_msec() call for timeout calculation when time_poll()
> is asked to skip poll()
>
> 2. Reuse the time_msec() result from deadline calculation for
> last_wakeup and timeout calculation.
>
> Signed-off-by: Anton Ivanov <anton.ivanov at cambridgegreys.com>
Acked-by: Gaetan Rivet <grive at u256.net>
--
Gaetan Rivet
More information about the dev
mailing list