Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels