From 8eedac58332094c72caf1fc6c41312e8ce1728b7 Mon Sep 17 00:00:00 2001 From: Leif Delgass Date: Wed, 21 Aug 2002 01:14:43 +0000 Subject: add missing include (for udelay), remove unused counter. --- linux-core/i810_dma.c | 3 +-- linux/i810_dma.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/linux-core/i810_dma.c b/linux-core/i810_dma.c index a0ab1430..e6423fd6 100644 --- a/linux-core/i810_dma.c +++ b/linux-core/i810_dma.c @@ -37,6 +37,7 @@ #include "i810_drm.h" #include "i810_drv.h" #include /* For task queue support */ +#include #define I810_BUF_FREE 2 #define I810_BUF_CLIENT 1 @@ -337,8 +338,6 @@ static int i810_wait_ring(drm_device_t *dev, int n) end = jiffies + (HZ*3); while (ring->space < n) { - int i; - ring->head = I810_READ(LP_RING + RING_HEAD) & HEAD_ADDR; ring->space = ring->head - (ring->tail+8); if (ring->space < 0) ring->space += ring->Size; diff --git a/linux/i810_dma.c b/linux/i810_dma.c index a0ab1430..e6423fd6 100644 --- a/linux/i810_dma.c +++ b/linux/i810_dma.c @@ -37,6 +37,7 @@ #include "i810_drm.h" #include "i810_drv.h" #include /* For task queue support */ +#include #define I810_BUF_FREE 2 #define I810_BUF_CLIENT 1 @@ -337,8 +338,6 @@ static int i810_wait_ring(drm_device_t *dev, int n) end = jiffies + (HZ*3); while (ring->space < n) { - int i; - ring->head = I810_READ(LP_RING + RING_HEAD) & HEAD_ADDR; ring->space = ring->head - (ring->tail+8); if (ring->space < 0) ring->space += ring->Size; -- cgit v1.2.3