|
@@ -147,7 +147,7 @@ static int agp_backend_initialize(struct agp_bridge_data *bridge)
|
|
|
printk(KERN_ERR PFX "unable to get memory for scratch page.\n");
|
|
|
return -ENOMEM;
|
|
|
}
|
|
|
- global_flush_tlb();
|
|
|
+ flush_agp_mappings();
|
|
|
|
|
|
bridge->scratch_page_real = virt_to_gart(addr);
|
|
|
bridge->scratch_page =
|
|
@@ -191,7 +191,7 @@ err_out:
|
|
|
if (bridge->driver->needs_scratch_page) {
|
|
|
bridge->driver->agp_destroy_page(
|
|
|
gart_to_virt(bridge->scratch_page_real));
|
|
|
- global_flush_tlb();
|
|
|
+ flush_agp_mappings();
|
|
|
}
|
|
|
if (got_gatt)
|
|
|
bridge->driver->free_gatt_table(bridge);
|
|
@@ -217,7 +217,7 @@ static void agp_backend_cleanup(struct agp_bridge_data *bridge)
|
|
|
bridge->driver->needs_scratch_page) {
|
|
|
bridge->driver->agp_destroy_page(
|
|
|
gart_to_virt(bridge->scratch_page_real));
|
|
|
- global_flush_tlb();
|
|
|
+ flush_agp_mappings();
|
|
|
}
|
|
|
}
|
|
|
|