]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86/mm: TLB_REMOTE_SEND_IPI should count pages
authorNadav Amit <namit@vmware.com>
Fri, 1 Apr 2016 21:31:23 +0000 (14:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2016 16:08:38 +0000 (09:08 -0700)
commit8e8a1a17bcc016c59044b06776fc1ddbcc897bb3
treed0a4f759eaa467bbbc6070d8aaa7544900e72b3b
parentf71e846236048ca5165b4ff5bc6f1745cabb6bd6
x86/mm: TLB_REMOTE_SEND_IPI should count pages

commit 18c98243ddf05a1827ad2c359c5ac051101e7ff7 upstream.

TLB_REMOTE_SEND_IPI was recently introduced, but it counts bytes instead
of pages.  In addition, it does not report correctly the case in which
flush_tlb_page flushes a page.  Fix it to be consistent with other TLB
counters.

Fixes: 5b74283ab251b9d ("x86, mm: trace when an IPI is about to be sent")
Signed-off-by: Nadav Amit <namit@vmware.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Rik van Riel <riel@redhat.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/mm/tlb.c