From 1490c93c7fc25dd069314ddbf9fecf235d55c7e8 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 8 Mar 2024 08:58:54 -0500 Subject: [PATCH] MT#40962 remove 2 ms exemption Go to sleep even if the sleep time is less than 2 ms. This makes the math a lot easier and shouldn't have a noticeable impact as this is a somewhat unnecessary attempt at optimization. Analogous to 292eb8cf1c Change-Id: I6d936a4450967dcd76b4647f189aa3f71e5ed7ae --- core/sip/wheeltimer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/sip/wheeltimer.cpp b/core/sip/wheeltimer.cpp index a260466d..c4f6ac5f 100644 --- a/core/sip/wheeltimer.cpp +++ b/core/sip/wheeltimer.cpp @@ -84,8 +84,7 @@ void _wheeltimer::run() sdiff.tv_sec = diff.tv_sec; sdiff.tv_nsec = diff.tv_usec * 1000; - if(sdiff.tv_nsec > 2000000) // 2 ms - nanosleep(&sdiff,&rem); + nanosleep(&sdiff,&rem); } //else { //printf("missed one tick\n");