You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The i.MX timer's set_timeout function converts absolute times to relative without checking that the time is in the future. This leads to an attempt to set a very large relative timeout instead of returning ETIME.
Also, non-periodic relative timeouts that are too far into the future for a 32-bit timer should saturate to 0xffffffff so that the timeout is received early, rather than returning EINVAL.
The omap version of set_timeout handles both of these cases; I think the code can simply be copied from there.
The i.MX timer's
set_timeout
function converts absolute times to relative without checking that the time is in the future. This leads to an attempt to set a very large relative timeout instead of returningETIME
.util_libs/libplatsupport/src/mach/imx/ltimer.c
Line 122 in 8d89181
Also, non-periodic relative timeouts that are too far into the future for a 32-bit timer should saturate to 0xffffffff so that the timeout is received early, rather than returning
EINVAL
.The omap version of
set_timeout
handles both of these cases; I think the code can simply be copied from there.util_libs/libplatsupport/src/mach/omap/ltimer.c
Line 94 in 8d89181
The text was updated successfully, but these errors were encountered: