kernel: timer: update _timeout API for const correctness

API that takes _timeout structures but doesn't change data in them is
updated to const-qualify the underlying object, allowing information
to be retrieved from contexts where the containing object is
immutable.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
This commit is contained in:
Peter A. Bigot 2020-09-18 16:24:57 -05:00 committed by Carles Cufí
commit 16a4081520
3 changed files with 7 additions and 7 deletions

View file

@ -1058,8 +1058,8 @@ __syscall void k_thread_abort(k_tid_t thread);
*/
__syscall void k_thread_start(k_tid_t thread);
extern k_ticks_t z_timeout_expires(struct _timeout *timeout);
extern k_ticks_t z_timeout_remaining(struct _timeout *timeout);
extern k_ticks_t z_timeout_expires(const struct _timeout *timeout);
extern k_ticks_t z_timeout_remaining(const struct _timeout *timeout);
#ifdef CONFIG_SYS_CLOCK_EXISTS