kernel/timeout: revert to signed dticks for timeout storage

The fix to handle long duration timeouts in 150e18de6e also
changed the duration value from signed to unsigned.  This can cause
delays in processing alarms when timer handlers run longer than a tick
(either due to delays or if there are many of them).  Revert to a
signed representation.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
Peter Bigot 2020-09-03 14:30:04 -05:00 committed by Carles Cufí
commit 5f0991d84b

View file

@ -223,9 +223,9 @@ struct _timeout {
_timeout_func_t fn; _timeout_func_t fn;
#ifdef CONFIG_TIMEOUT_64BIT #ifdef CONFIG_TIMEOUT_64BIT
/* Can't use k_ticks_t for header dependency reasons */ /* Can't use k_ticks_t for header dependency reasons */
uint64_t dticks; int64_t dticks;
#else #else
uint32_t dticks; int32_t dticks;
#endif #endif
}; };