Use PG_reserved for things we remap non-cached

main
Jeff Hartmann 2000-09-28 23:04:57 +00:00
parent ed2d0b4bb0
commit b0a7efb5a9
1 changed files with 2 additions and 3 deletions

View File

@ -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;
}