• Peter Zijlstra's avatar
    asm-generic/tlb: Provide generic tlb_flush() based on flush_tlb_mm() · a30e32bd
    Peter Zijlstra authored
    When an architecture does not have (an efficient) flush_tlb_range(),
    but instead always uses full TLB invalidates, the current generic
    tlb_flush() is sub-optimal, for it will generate extra flushes in
    order to keep the range small.
    
    But if we cannot do range flushes, that is a moot concern. Optionally
    provide this simplified default.
    
    No change in behavior intended.
    Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Acked-by: default avatarWill Deacon <will.deacon@arm.com>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: Andy Lutomirski <luto@kernel.org>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: Dave Hansen <dave.hansen@linux.intel.com>
    Cc: H. Peter Anvin <hpa@zytor.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Rik van Riel <riel@surriel.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    a30e32bd
tlb.h 17.9 KB