]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.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)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 20 Apr 2016 20:53:54 +0000 (14:53 -0600)
commit065c020d0ae52fd88b35fc80f9ff03bba60bb65d
tree3d163b48559e7bb5ffac66bcc536549ded95fa32
parent3a57248f026de8ffa67e8a0068a0e024beb0702d
x86/mm: TLB_REMOTE_SEND_IPI should count pages

BugLink: http://bugs.launchpad.net/bugs/1572722
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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/x86/mm/tlb.c