x86, mm: add parenthesis for TLB tracepoint size calculation
Subsystems (3)
PATCH 1/1 x86, mm: add parenthesis for TLB tracepoint size calculation
From: Dave Hansen <[email protected]>
flush_tlb_info->flush_start/end are both normal virtual addresses. When calculating 'nr_pages' (only used for the tracepoint), I neglected to put parenthesis in.
Thanks to David Koufaty for pointing this out.
Signed-off-by Dave Hansen <[email protected]>
---
b/arch/x86/mm/tlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/mm/tlb.c renamed from arch/x86/mm/tlb.c~tlb-parens +1 -1
@@ -117,7 +117,7 @@ static void flush_tlb_func(void *info) }else {unsigned long addr;unsigned long nr_pages = - f->flush_end - f->flush_start /PAGE_SIZE ; + (f->flush_end - f->flush_start) /PAGE_SIZE ; addr = f->flush_start;while (addr < f->flush_end) {__flush_tlb_single (addr);
_
tip-bot for Dave Hansen
merge bot[tip:x86/urgent] x86/mm: Add parenthesis for TLB tracepoint size calculation
x86/mm: Add parenthesis for TLB tracepoint size calculation
Commit-ID: bbc03778b9954a2ec93baed63718e4df0192f130 Gitweb: http://git.kernel.org/tip/bbc03778b9954a2ec93baed63718e4df0192f130 Author: Dave Hansen <[email protected]> AuthorDate: Mon, 20 Jul 2015 16:01:53 -0700 Committer: Ingo Molnar <[email protected]> CommitDate: Tue, 21 Jul 2015 07:45:50 +0200
x86/mm: Add parenthesis for TLB tracepoint size calculation
flush_tlb_info->flush_start/end are both normal virtual addresses. When calculating 'nr_pages' (only used for the tracepoint), I neglected to put parenthesis in.
Thanks to David Koufaty for pointing this out.
Signed-off-by Dave Hansen <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- arch/x86/mm/tlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/mm/tlb.c +1 -1
@@ -117,7 +117,7 @@ static void flush_tlb_func(void *info) }else {unsigned long addr;unsigned long nr_pages = - f->flush_end - f->flush_start /PAGE_SIZE ; + (f->flush_end - f->flush_start) /PAGE_SIZE ; addr = f->flush_start;while (addr < f->flush_end) {__flush_tlb_single (addr);