aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2024-03-01 10:17:27 +0200
committerMatias Elo <matias.elo@nokia.com>2024-03-11 15:03:05 +0200
commit38f1fda41c164e4f107f5b3f06258b2e679bbea9 (patch)
tree82f8daff818fabd27bcc4e4f5f413ecfbebeaeea
parent39ca2e4e22699666502c744ee54ebb4391892457 (diff)
Port 90dd758b7 "linux-gen: timer: return time to the next timeout from timer_run()"
Time to the next timeout is not available with DPDK timer implementation. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
-rw-r--r--platform/linux-dpdk/include/odp_timer_internal.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/platform/linux-dpdk/include/odp_timer_internal.h b/platform/linux-dpdk/include/odp_timer_internal.h
index 3cc8ca469..4d7efedd6 100644
--- a/platform/linux-dpdk/include/odp_timer_internal.h
+++ b/platform/linux-dpdk/include/odp_timer_internal.h
@@ -24,6 +24,8 @@
#include <rte_config.h>
+#include <stdint.h>
+
/**
* Internal Timeout header
*/
@@ -56,10 +58,13 @@ ODP_STATIC_ASSERT(sizeof(odp_timeout_hdr_t) <= 3 * RTE_CACHE_LINE_SIZE,
void _odp_timer_run_inline(int dec);
/* Static inline wrapper to minimize modification of schedulers. */
-static inline void timer_run(int dec)
+static inline uint64_t timer_run(int dec)
{
if (odp_global_rw->inline_timers)
_odp_timer_run_inline(dec);
+
+ /* Time to the next timeout not available with DPDK timers */
+ return UINT64_MAX;
}
#endif