[2.5] add some missing gloabl_flush_tlb() calls
PATCH 1/1 [2.5] add some missing gloabl_flush_tlb() calls
I found some places where change_page_attr() is called without the corresponding global_flush_tlb(). This patch should fix it...
Thomas Schlichter
P.S.: I hope this fix is correct at the first try...
arch/i386/mm/ioremap.c renamed from arch/i386/mm/ioremap.c.orig +2 -0
@@ -205,6 +205,7 @@iounmap (p); p =NULL ; } +global_flush_tlb (); }return p;
@@ -226,6 +227,7 @@change_page_attr (virt_to_page (__va (p->phys_addr)), p->size >>PAGE_SHIFT ,PAGE_KERNEL ); +global_flush_tlb (); }kfree (p); }
arch/x86_64/mm/ioremap.c renamed from arch/x86_64/mm/ioremap.c.orig +2 -0
@@ -205,6 +205,7 @@iounmap (p); p =NULL ; } +global_flush_tlb (); }return p;
@@ -226,6 +227,7 @@change_page_attr (virt_to_page (__va (p->phys_addr)), p->size >>PAGE_SHIFT ,PAGE_KERNEL ); +global_flush_tlb (); }kfree (p); }
arch/x86_64/kernel/pci-gart.c renamed from arch/x86_64/kernel/pci-gart.c.orig +1 -0
@@ -437,6 +437,7 @@ }flush_gart (); +global_flush_tlb ();printk ("PCI-DMA: aperture base @ %x size %u KB\n" , aper_base, aper_size>>10 );return 0 ;