aboutsummaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2022-12-22 10:27:44 +0200
committerMatias Elo <matias.elo@nokia.com>2023-02-07 15:07:27 +0200
commitd74fabe0960815c17a1746bbc9edc4378dc40fcb (patch)
tree27847cb058193455ed8414416752641e37cd5502 /platform
parenta9e0425f9a0a25e5a173f06612ed31188ca005bf (diff)
api: timer: use deprecate macro for odp_timer_set_rel()
Use ODP_DEPRECATE() macro for odp_timer_set_rel() function. Previously, the deprecation was only mentioned in the function documentation. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'platform')
-rw-r--r--platform/linux-generic/odp_timer.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/platform/linux-generic/odp_timer.c b/platform/linux-generic/odp_timer.c
index 05660eb7a..8597c3f4e 100644
--- a/platform/linux-generic/odp_timer.c
+++ b/platform/linux-generic/odp_timer.c
@@ -17,6 +17,7 @@
#include <odp/api/atomic.h>
#include <odp/api/cpu.h>
#include <odp/api/debug.h>
+#include <odp/api/deprecated.h>
#include <odp/api/event.h>
#include <odp/api/hints.h>
#include <odp/api/pool.h>
@@ -1494,9 +1495,7 @@ odp_event_t odp_timer_free(odp_timer_t hdl)
return timer_free(tp, idx);
}
-int odp_timer_set_abs(odp_timer_t hdl,
- uint64_t abs_tck,
- odp_event_t *tmo_ev)
+int ODP_DEPRECATE(odp_timer_set_abs)(odp_timer_t hdl, uint64_t abs_tck, odp_event_t *tmo_ev)
{
timer_pool_t *tp = handle_to_tp(hdl);
uint64_t cur_tick = current_nsec(tp);
@@ -1512,9 +1511,7 @@ int odp_timer_set_abs(odp_timer_t hdl,
return ODP_TIMER_FAIL;
}
-int odp_timer_set_rel(odp_timer_t hdl,
- uint64_t rel_tck,
- odp_event_t *tmo_ev)
+int ODP_DEPRECATE(odp_timer_set_rel)(odp_timer_t hdl, uint64_t rel_tck, odp_event_t *tmo_ev)
{
timer_pool_t *tp = handle_to_tp(hdl);
uint64_t cur_tick = current_nsec(tp);