From b0a7efb5a959a6105486d303d25d06d69d5d569e Mon Sep 17 00:00:00 2001 From: Jeff Hartmann Date: Thu, 28 Sep 2000 23:04:57 +0000 Subject: Use PG_reserved for things we remap non-cached --- linux/mga_dma.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/linux/mga_dma.c b/linux/mga_dma.c index 40d77160..9f12a2be 100644 --- a/linux/mga_dma.c +++ b/linux/mga_dma.c @@ -58,7 +58,7 @@ static unsigned long mga_alloc_page(drm_device_t *dev) return 0; } atomic_inc(&virt_to_page(address)->count); - set_bit(PG_locked, &virt_to_page(address)->flags); + set_bit(PG_reserved, &virt_to_page(address)->flags); return address; } @@ -67,8 +67,7 @@ static void mga_free_page(drm_device_t *dev, unsigned long page) { if(!page) return; atomic_dec(&virt_to_page(page)->count); - clear_bit(PG_locked, &virt_to_page(page)->flags); - wake_up(&virt_to_page(page)->wait); + clear_bit(PG_reserved, &virt_to_page(page)->flags); free_page(page); return; } -- cgit v1.2.3