aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/agp/generic.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-08-21 07:46:25 -0400
committerIngo Molnar <mingo@elte.hu>2008-08-21 07:46:25 -0400
commit9326d61bf64c4293f834e86c11f52db5be9798d6 (patch)
tree96041087b2600d70d469924fec38b004678b5093 /drivers/char/agp/generic.c
parent5843d9a4d0ba89719916c8f07fc9c57b7126be6d (diff)
Revert "reduce tlb/cache flush times of agpgart memory allocation"
This reverts commit 466ae837424dcc538b1af2a0eaf53be32edcdbe7.
Diffstat (limited to 'drivers/char/agp/generic.c')
-rw-r--r--drivers/char/agp/generic.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/char/agp/generic.c b/drivers/char/agp/generic.c
index bf239b8ecac5..eaa1a355bb32 100644
--- a/drivers/char/agp/generic.c
+++ b/drivers/char/agp/generic.c
@@ -274,7 +274,6 @@ struct agp_memory *agp_allocate_memory(struct agp_bridge_data *bridge,
274 new->memory[i] = virt_to_gart(addr); 274 new->memory[i] = virt_to_gart(addr);
275 new->page_count++; 275 new->page_count++;
276 } 276 }
277 map_page_into_agp_global_flush();
278 new->bridge = bridge; 277 new->bridge = bridge;
279 278
280 return new; 279 return new;
@@ -1187,8 +1186,7 @@ void *agp_generic_alloc_page(struct agp_bridge_data *bridge)
1187 if (page == NULL) 1186 if (page == NULL)
1188 return NULL; 1187 return NULL;
1189 1188
1190 /* agp_allocate_memory will do flush */ 1189 map_page_into_agp(page);
1191 map_page_into_agp_noflush(page);
1192 1190
1193 get_page(page); 1191 get_page(page);
1194 atomic_inc(&agp_bridge->current_memory_agp); 1192 atomic_inc(&agp_bridge->current_memory_agp);