Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77ec430e authored by Jan Beulich's avatar Jan Beulich Committed by Dave Jones
Browse files

[AGPGART] Add missing calls to global_flush_tlb() to ali-agp



add missing calls to global_flush_tlb().

Signed-off-by: default avatarJan Beulich <jbeulich@novell.com>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 82eab130
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -145,6 +145,7 @@ static void *m1541_alloc_page(struct agp_bridge_data *bridge)
	void *addr = agp_generic_alloc_page(agp_bridge);
	void *addr = agp_generic_alloc_page(agp_bridge);
	u32 temp;
	u32 temp;


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


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