aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/odp_timer_internal.h
diff options
context:
space:
mode:
authorJere Leppänen <jere.leppanen@nokia.com>2023-03-14 11:29:42 +0200
committerMatias Elo <matias.elo@nokia.com>2024-02-01 16:35:10 +0200
commit22c7067de77ff0ad39c01cd2525547eb3a9e6772 (patch)
tree9d197a1cf556107b9f503f457d1b062e219f3d24 /platform/linux-generic/include/odp_timer_internal.h
parent90dd758b73034ac12caf29e7ddab4ad6d3cbbbaa (diff)
linux-gen: timer: allow forcing a scan in _odp_timer_run_inline()
Allow forcing a timer scan in timer_run() / _odp_timer_run_inline() by providing a special parameter value TIMER_SCAN_FORCE. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'platform/linux-generic/include/odp_timer_internal.h')
-rw-r--r--platform/linux-generic/include/odp_timer_internal.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/linux-generic/include/odp_timer_internal.h b/platform/linux-generic/include/odp_timer_internal.h
index 9c9852de9..38192d917 100644
--- a/platform/linux-generic/include/odp_timer_internal.h
+++ b/platform/linux-generic/include/odp_timer_internal.h
@@ -22,6 +22,12 @@
#include <odp_global_data.h>
#include <odp_pool_internal.h>
+/*
+ * Use as the argument to timer_run() to force a scan and to ignore rate
+ * limit.
+ */
+#define TIMER_SCAN_FORCE INT32_MAX
+
/**
* Internal Timeout header
*/