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:
parent
dc79b37167
commit
5f0991d84b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue