Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 13663
b: refs/heads/master
c: 6730c3c
h: refs/heads/master
i:
  13661: 88a6113
  13659: 1094269
  13655: e4de748
  13647: 7d45db5
  13631: 97e74a6
v: v3
  • Loading branch information
Linus Torvalds committed Nov 9, 2005
1 parent 794cc88 commit 1863002
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 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: 969780f8079994f161de991870feba68f49fc3d7
refs/heads/master: 6730c3c14421b7c924d06e31bb66e0adad225547
6 changes: 3 additions & 3 deletions trunk/drivers/char/agp/backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down Expand Up @@ -191,7 +191,7 @@ static int agp_backend_initialize(struct agp_bridge_data *bridge)
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);
Expand All @@ -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();
}
}

Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/char/agp/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ void agp_free_memory(struct agp_memory *curr)
for (i = 0; i < curr->page_count; i++) {
curr->bridge->driver->agp_destroy_page(gart_to_virt(curr->memory[i]));
}
global_flush_tlb();
flush_agp_mappings();
}
agp_free_key(curr->key);
vfree(curr->memory);
Expand Down Expand Up @@ -213,8 +213,6 @@ struct agp_memory *agp_allocate_memory(struct agp_bridge_data *bridge,
new->memory[i] = virt_to_gart(addr);
new->page_count++;
}
global_flush_tlb();

new->bridge = bridge;

flush_agp_mappings();
Expand Down

0 comments on commit 1863002

Please sign in to comment.