Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 56949d41 authored by Russell King's avatar Russell King
Browse files

ARM: udelay: prevent math rounding resulting in short udelays



We perform the microseconds to loops calculation using a number of
multiplies and shift rights.  Each shift right rounds down the
resulting value, which can result in delays shorter than requested.
Ensure that we always round up.

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 9e9bc973
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