]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mm,thp: introduce flush_pmd_tlb_range
authorVineet Gupta <vgupta@synopsys.com>
Fri, 20 Feb 2015 05:06:28 +0000 (10:36 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Sat, 17 Oct 2015 12:18:20 +0000 (17:48 +0530)
commit12ebc1581ad114543ae822aa3a12f76072e2f902
tree2e80b72284497b1a45f29f0970ce13332f6896e2
parentbd5e88ad72b26ebf7ecb231bc22ceecd6cbdb951
mm,thp: introduce flush_pmd_tlb_range

ARCHes with special requirements for evicting THP backing TLB entries
can implement this.

Otherwise also, it can help optimize TLB flush in THP regime.
stock flush_tlb_range() typically has optimization to nuke the entire
TLB if flush span is greater than a certain threshhold, which will
likely be true for a single huge page. Thus a single thp flush will
invalidate the entrire TLB which is not desirable.

e.g. see arch/arc: flush_pmd_tlb_range

Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Link: http://lkml.kernel.org/r/20151009100816.GC7873@node
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
mm/huge_memory.c
mm/pgtable-generic.c