diff options
author | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2002-05-17 08:21:34 +0000 |
---|---|---|
committer | Alan Hourihane <alanh@fairlite.demon.co.uk> | 2002-05-17 08:21:34 +0000 |
commit | 91d7b17e82e8d8659405832a3cd1e7a904ad283f (patch) | |
tree | 579f1da0aaedf761f80a159dd8d9387742519620 /linux-core/i830_dma.c | |
parent | 9e67da5626b683df58f2041fdb0f743eb4da7036 (diff) |
same udelay fixes
Diffstat (limited to 'linux-core/i830_dma.c')
-rw-r--r-- | linux-core/i830_dma.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/linux-core/i830_dma.c b/linux-core/i830_dma.c index a2b39ee0..6d0e3223 100644 --- a/linux-core/i830_dma.c +++ b/linux-core/i830_dma.c @@ -62,7 +62,7 @@ do { \ do { \ _head = I830_READ(LP_RING + RING_HEAD) & HEAD_ADDR; \ _tail = I830_READ(LP_RING + RING_TAIL) & TAIL_ADDR; \ - for(_i = 0; _i < 65535; _i++); \ + udelay(10); \ } while(_head != _tail); \ } while(0) @@ -390,8 +390,7 @@ static int i830_wait_ring(drm_device_t *dev, int n) DRM_ERROR("lockup\n"); goto out_wait_ring; } - - for (i = 0 ; i < 2000 ; i++) ; + udelay(1); } out_wait_ring: |