Skip to content
Commit bc64290c authored by Vincent Coubard's avatar Vincent Coubard
Browse files

lwip: Round up ms to tick conversion



LwIP expresses timeout in milliseconds which are latter converted into
ticks. Depending on the tick frequency of the system, the previous
conversion routine was returning a tick value of 0 for certain amounts
of ms.

This update take into account the remainder of division made for the
conversion. If a remainder is present, it unconditionally adds 1 tick.

This solves issues in keyword where the system request to sleep for 3ms
but sleeps for 0 ticks. This ends up in busy waiting.

Signed-off-by: Vincent Coubard's avatarVincent Coubard <vincent.coubard@arm.com>
parent e2379be0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment