| commit | 56949d414acd30353fdba4b64876a0a7953a7b77 | [log] [tgz] |
|---|---|---|
| author | Russell King <rmk+kernel@arm.linux.org.uk> | Mon Jan 10 23:55:59 2011 +0000 |
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | Mon Jan 10 23:55:59 2011 +0000 |
| tree | 7fb58dd19c6ab12480cb82f8b8a2b9141da1d905 | |
| parent | 9e9bc9736756f25d6c47b4eba0ebf25b20a6f153 [diff] |
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: Russell King <rmk+kernel@arm.linux.org.uk>