Re: [ovs-dev] [PATCH v3 2/2] Minimize the number of time calls in time_poll()

2021-07-19 Thread Ben Pfaff
On Fri, Jul 16, 2021 at 02:42:33PM +0100, anton.iva...@cambridgegreys.com wrote: > From: Anton Ivanov > > 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

[ovs-dev] [PATCH v3 2/2] Minimize the number of time calls in time_poll()

2021-07-16 Thread anton . ivanov
From: Anton Ivanov 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 calcu