Skip to content

Commit

Permalink
[AGPGART] Add missing calls to global_flush_tlb() to ali-agp
Browse files Browse the repository at this point in the history
add missing calls to global_flush_tlb().

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Dave Jones <davej@redhat.com>
  • Loading branch information
Jan Beulich authored and Dave Jones committed Apr 26, 2007
1 parent 82eab13 commit 77ec430
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/char/agp/ali-agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ static void *m1541_alloc_page(struct agp_bridge_data *bridge)
void *addr = agp_generic_alloc_page(agp_bridge);
u32 temp;

global_flush_tlb();
if (!addr)
return NULL;

Expand All @@ -160,6 +161,7 @@ static void ali_destroy_page(void * addr)
if (addr) {
global_cache_flush(); /* is this really needed? --hch */
agp_generic_destroy_page(addr);
global_flush_tlb();
}
}

Expand Down

0 comments on commit 77ec430

Please sign in to comment.