timer_wait_until() expect a timestamp.

Fixes: d71c45199341 ("pinctrl: Use ovs_mutex_trylock() in the pinctrl thread.")
Signed-off-by: Xavier Simonart <[email protected]>

---
-v2: Following Ales's feedback:
 -- Use poll_timer_wait instead of poll_timer_wait_until.
 -- Flaky test => move test in following patch.
---
 controller/pinctrl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/controller/pinctrl.c b/controller/pinctrl.c
index fdb1527c1..fcca24528 100644
--- a/controller/pinctrl.c
+++ b/controller/pinctrl.c
@@ -3970,7 +3970,7 @@ pinctrl_handler(void *arg_)
         if (lock_failed) {
             /* Wait for 5 msecs before waking to avoid degrading the
              * lock to a spinlock. */
-            poll_timer_wait_until(5);
+            poll_timer_wait(5);
         } else {
             rconn_run_wait(swconn);
             rconn_recv_wait(swconn);
-- 
2.47.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to