Russell King
56949d414a
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>
2011-01-10 23:55:59 +00:00
..
2009-07-24 12:32:57 +01:00
2009-07-24 12:32:57 +01:00
2010-04-21 08:45:21 +01:00
2009-08-13 20:34:37 +02:00
2008-09-01 12:06:34 +01:00
2010-05-08 10:45:26 +01:00
2008-09-01 12:06:34 +01:00
2010-04-21 08:45:21 +01:00
2009-09-15 22:07:02 +01:00
2009-07-24 12:32:57 +01:00
2010-05-08 10:45:26 +01:00
2008-09-01 12:06:34 +01:00
2008-09-01 12:06:34 +01:00
2008-09-01 12:06:35 +01:00
2008-09-01 12:06:34 +01:00
2010-07-26 12:18:16 +01:00
2011-01-10 23:55:59 +00:00
2009-07-24 12:32:57 +01:00
2008-08-07 09:55:48 +01:00
2010-11-24 20:17:46 +00:00
2005-04-16 15:20:36 -07:00
2010-11-04 15:44:31 +00:00
2006-03-21 22:05:50 +00:00
2008-09-01 12:06:34 +01:00
2008-09-01 12:06:34 +01:00
2008-08-07 09:55:48 +01:00
2008-09-01 12:06:34 +01:00
2005-07-16 17:17:18 +01:00
2008-09-01 12:06:34 +01:00
2008-09-01 12:06:34 +01:00
2008-08-07 09:55:48 +01:00
2009-07-24 12:32:57 +01:00
2009-09-15 09:37:12 -07:00
2009-07-24 12:32:57 +01:00
2010-06-24 15:41:31 +01:00
2008-09-01 12:06:34 +01:00
2009-07-24 12:32:57 +01:00
2010-03-29 17:33:33 +01:00
2008-11-27 12:37:59 +00:00
2008-09-01 12:06:34 +01:00
2008-09-01 12:06:34 +01:00
2010-11-04 15:44:31 +00:00
2008-09-01 12:06:34 +01:00
2009-09-15 09:37:12 -07:00
2008-09-01 12:06:34 +01:00
2010-04-21 08:45:21 +01:00
2010-04-21 08:45:21 +01:00
2008-09-01 12:06:34 +01:00
2008-09-01 12:06:34 +01:00
2008-09-01 12:06:34 +01:00
2008-09-01 12:06:34 +01:00
2010-03-30 22:02:32 +09:00
2010-11-04 15:44:31 +00:00
2008-09-01 12:06:34 +01:00