Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19593
b: refs/heads/master
c: 507d256
h: refs/heads/master
i:
  19591: b9be494
v: v3
  • Loading branch information
Dave Airlie authored and Dave Airlie committed Jan 25, 2006
1 parent 582e471 commit 1ff3d99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f1e5c03d34c39394781ae13543cd3355976e4812
refs/heads/master: 507d256bae9eef7acd5049af6e3f67c24904a1e4
11 changes: 4 additions & 7 deletions trunk/drivers/char/drm/ati_pcigart.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,16 @@ static void *drm_ati_alloc_pcigart_table(void)
int i;
DRM_DEBUG("%s\n", __FUNCTION__);

address = __get_free_pages(GFP_KERNEL, ATI_PCIGART_TABLE_ORDER);
address = __get_free_pages(GFP_KERNEL | __GFP_COMP,
ATI_PCIGART_TABLE_ORDER);
if (address == 0UL) {
return NULL;
}

page = virt_to_page(address);

for (i = 0; i < ATI_PCIGART_TABLE_PAGES; i++, page++) {
get_page(page);
for (i = 0; i < ATI_PCIGART_TABLE_PAGES; i++, page++)
SetPageReserved(page);
}

DRM_DEBUG("%s: returning 0x%08lx\n", __FUNCTION__, address);
return (void *)address;
Expand All @@ -83,10 +82,8 @@ static void drm_ati_free_pcigart_table(void *address)

page = virt_to_page((unsigned long)address);

for (i = 0; i < ATI_PCIGART_TABLE_PAGES; i++, page++) {
__put_page(page);
for (i = 0; i < ATI_PCIGART_TABLE_PAGES; i++, page++)
ClearPageReserved(page);
}

free_pages((unsigned long)address, ATI_PCIGART_TABLE_ORDER);
}
Expand Down

0 comments on commit 1ff3d99

Please sign in to comment.