x86/mm: New tunable for single vs full TLB flush
authorDave Hansen <dave.hansen@linux.intel.com>
Thu, 31 Jul 2014 15:41:01 +0000 (08:41 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 31 Jul 2014 15:48:51 +0000 (08:48 -0700)
commit2d040a1ce903ca5d6e7c983621fb29c6883c4c48
tree2969f9de20422d8e247cf6e13d043330878baff6
parentd17d8f9dedb9dd76fd540a5c497101529d9eb25a
x86/mm: New tunable for single vs full TLB flush

Most of the logic here is in the documentation file.  Please take
a look at it.

I know we've come full-circle here back to a tunable, but this
new one is *WAY* simpler.  I challenge anyone to describe in one
sentence how the old one worked.  Here's the way the new one
works:

If we are flushing more pages than the ceiling, we use
the full flush, otherwise we use per-page flushes.

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: http://lkml.kernel.org/r/20140731154101.12B52CAF@viggo.jf.intel.com
Acked-by: Rik van Riel <riel@redhat.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Documentation/x86/tlb.txt [new file with mode: 0644]
arch/x86/mm/tlb.c