]> git.baikalelectronics.ru Git - kernel.git/commit
mm/mmu_gather: enable tlb flush range in generic mmu_gather
authorAlex Shi <alex.shi@intel.com>
Thu, 28 Jun 2012 01:02:21 +0000 (09:02 +0800)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 28 Jun 2012 02:29:11 +0000 (19:29 -0700)
commit4bae738d72e0a3c2a9bac9d0bd188c0d0d6fb9c4
treed67c27b8505af6f7f21fa918599c2e9d37c2e5e1
parentc36df6bc44db339e7393e8c4d44a27ebe89c2ee9
mm/mmu_gather: enable tlb flush range in generic mmu_gather

This patch enabled the tlb flush range support in generic mmu layer.

Most of arch has self tlb flush range support, like ARM/IA64 etc.
X86 arch has no this support in hardware yet. But another instruction
'invlpg' can implement this function in some degree. So, enable this
feather in generic layer for x86 now. and maybe useful for other archs
in further.

Generic mmu_gather struct is protected by micro
HAVE_GENERIC_MMU_GATHER. Other archs that has flush range supported
own self mmu_gather struct. So, now this change is safe for them.

In future we may unify this struct and related functions on multiple
archs.

Thanks for Peter Zijlstra time and time reminder for multiple
architecture code safe!

Signed-off-by: Alex Shi <alex.shi@intel.com>
Link: http://lkml.kernel.org/r/1340845344-27557-7-git-send-email-alex.shi@intel.com
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
include/asm-generic/tlb.h
mm/memory.c