diff options
Diffstat (limited to 'drivers/char/agp/intel-agp.c')
-rw-r--r-- | drivers/char/agp/intel-agp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/agp/intel-agp.c b/drivers/char/agp/intel-agp.c index 03eac1eb8e0f..c03a7143928f 100644 --- a/drivers/char/agp/intel-agp.c +++ b/drivers/char/agp/intel-agp.c | |||
@@ -210,8 +210,8 @@ static void *i8xx_alloc_pages(void) | |||
210 | if (page == NULL) | 210 | if (page == NULL) |
211 | return NULL; | 211 | return NULL; |
212 | 212 | ||
213 | if (change_page_attr(page, 4, PAGE_KERNEL_NOCACHE) < 0) { | 213 | if (set_pages_uc(page, 4) < 0) { |
214 | change_page_attr(page, 4, PAGE_KERNEL); | 214 | set_pages_wb(page, 4); |
215 | global_flush_tlb(); | 215 | global_flush_tlb(); |
216 | __free_pages(page, 2); | 216 | __free_pages(page, 2); |
217 | return NULL; | 217 | return NULL; |
@@ -230,7 +230,7 @@ static void i8xx_destroy_pages(void *addr) | |||
230 | return; | 230 | return; |
231 | 231 | ||
232 | page = virt_to_page(addr); | 232 | page = virt_to_page(addr); |
233 | change_page_attr(page, 4, PAGE_KERNEL); | 233 | set_pages_wb(page, 4); |
234 | global_flush_tlb(); | 234 | global_flush_tlb(); |
235 | put_page(page); | 235 | put_page(page); |
236 | __free_pages(page, 2); | 236 | __free_pages(page, 2); |