From: Benjamin Herrenschmidt Date: Tue, 16 Oct 2007 08:26:28 +0000 (-0700) Subject: remove frv usage of flush_tlb_pgtables() X-Git-Tag: MMI-PSA29.97-13-9~39706 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ef0fce855677cc64c82331c0f6fd99fa526b95c2;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git remove frv usage of flush_tlb_pgtables() frv is the last user in the tree of that dubious hook, and it's my understanding that it's not even needed. It's only called by memory.c free_pgd_range() which is always called within an mmu_gather, and tlb_flush() on frv will do a flush_tlb_mm(), which from my reading of the code, seems to do what flush_tlb_ptables() does, which is to clear the cached PGE. Signed-off-by: Benjamin Herrenschmidt Acked-By: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/asm-frv/tlbflush.h b/include/asm-frv/tlbflush.h index da3a3179a85d..8370f97e41ee 100644 --- a/include/asm-frv/tlbflush.h +++ b/include/asm-frv/tlbflush.h @@ -57,8 +57,7 @@ do { \ #define __flush_tlb_global() flush_tlb_all() #define flush_tlb() flush_tlb_all() #define flush_tlb_kernel_range(start, end) flush_tlb_all() -#define flush_tlb_pgtables(mm,start,end) \ - asm volatile("movgs %0,scr0 ! movgs %0,scr1" :: "r"(ULONG_MAX) : "memory"); +#define flush_tlb_pgtables(mm,start,end) do { } while(0) #else