Revert "reduce tlb/cache flush times of agpgart memory allocation"
This reverts commit 466ae837424dcc538b1af2a0eaf53be32edcdbe7.
diff --git a/drivers/char/agp/generic.c b/drivers/char/agp/generic.c
index bf239b8..eaa1a35 100644
--- a/drivers/char/agp/generic.c
+++ b/drivers/char/agp/generic.c
@@ -274,7 +274,6 @@
new->memory[i] = virt_to_gart(addr);
new->page_count++;
}
- map_page_into_agp_global_flush();
new->bridge = bridge;
return new;
@@ -1187,8 +1186,7 @@
if (page == NULL)
return NULL;
- /* agp_allocate_memory will do flush */
- map_page_into_agp_noflush(page);
+ map_page_into_agp(page);
get_page(page);
atomic_inc(&agp_bridge->current_memory_agp);