Chris Metcalf
1337173148
arch/tile: fix __ndelay etc to work better
...
The current implementations of __ndelay and __udelay call a hypervisor
service to delay, but the hypervisor service isn't actually implemented
very well, and the consensus is that Linux should handle figuring this
out natively and not use a hypervisor service.
By converting nanoseconds to cycles, and then spinning until the
cycle counter reaches the desired cycle, we get several benefits:
first, we are sensitive to the actual clock speed; second, we use
less power by issuing a slow SPR read once every six cycles while
we delay; and third, we properly handle the case of an interrupt by
exiting at the target time rather than after some number of cycles.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
2011-03-01 16:20:04 -05:00
..
2010-06-04 17:11:18 -04:00
2010-08-13 08:52:19 -04:00
2011-02-25 08:46:38 -05:00
2010-06-04 17:11:18 -04:00
2010-10-15 15:39:25 -04:00
2010-06-04 17:11:18 -04:00
2010-10-09 21:51:44 +02:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2011-03-01 16:18:52 -05:00
2010-11-24 13:11:18 -05:00
2010-06-04 17:11:18 -04:00
2010-10-14 14:34:33 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-08-11 08:59:21 -07:00
2010-06-04 17:11:18 -04:00
2010-07-06 13:41:51 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-07-06 13:41:51 -04:00
2010-06-04 17:11:18 -04:00
2010-07-06 13:34:15 -04:00
2010-11-01 15:30:36 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-11-24 13:13:49 -05:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-07-06 13:34:01 -04:00
2010-10-26 17:25:38 -07:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-11-01 15:30:36 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-10-14 15:09:02 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-07-06 13:40:56 -04:00
2010-07-06 13:40:56 -04:00
2010-06-04 17:11:18 -04:00
2010-10-15 15:38:09 -04:00
2010-06-04 17:11:18 -04:00
2010-11-24 13:13:49 -05:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-07-06 13:41:51 -04:00
2010-11-01 15:30:36 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-11-24 13:11:18 -05:00
2011-03-01 16:19:58 -05:00
2010-06-04 17:11:18 -04:00
2010-08-11 10:38:06 -04:00
2010-07-06 13:41:51 -04:00
2010-06-04 17:11:18 -04:00
2010-08-15 12:14:41 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-09-15 11:16:08 -04:00
2010-06-04 17:11:18 -04:00
2010-08-13 08:32:21 -04:00
2010-12-17 16:59:29 -05:00
2010-07-06 13:34:01 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-07-06 13:41:51 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-07-06 13:41:51 -04:00
2010-11-01 15:31:29 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-10-14 14:34:33 -04:00
2010-10-15 15:38:09 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-07-06 13:42:15 -04:00
2011-03-01 16:20:04 -05:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-10-15 15:38:26 -04:00
2010-06-04 17:11:18 -04:00
2010-08-13 08:52:19 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00
2010-11-01 15:31:29 -04:00
2010-06-04 17:11:18 -04:00
2010-06-04 17:11:18 -04:00