diff options
author | Jeff Hartmann <jhartmann@valinux.com> | 2000-09-28 23:04:57 +0000 |
---|---|---|
committer | Jeff Hartmann <jhartmann@valinux.com> | 2000-09-28 23:04:57 +0000 |
commit | b0a7efb5a959a6105486d303d25d06d69d5d569e (patch) | |
tree | 46a3fe1d0f5bf2caa6aa673b08ffaaaaceba2a82 /linux | |
parent | ed2d0b4bb0bb90af87c7c89a2e0a6297455d3bbe (diff) |
Use PG_reserved for things we remap non-cached
Diffstat (limited to 'linux')
-rw-r--r-- | linux/mga_dma.c | 5 |
1 files 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; } |