diff options
author | Jere Leppänen <jere.leppanen@nokia.com> | 2023-03-14 11:29:42 +0200 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2024-02-01 16:35:10 +0200 |
commit | 22c7067de77ff0ad39c01cd2525547eb3a9e6772 (patch) | |
tree | 9d197a1cf556107b9f503f457d1b062e219f3d24 /platform/linux-generic/include/odp_timer_internal.h | |
parent | 90dd758b73034ac12caf29e7ddab4ad6d3cbbbaa (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.h | 6 |
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 */ |