Skip to content

Commit bbc0377

Browse files
hansendcIngo Molnar
authored andcommitted
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] Cc: <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 9d634c4 commit bbc0377

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/mm/tlb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ static void flush_tlb_func(void *info)
117117
} else {
118118
unsigned long addr;
119119
unsigned long nr_pages =
120-
f->flush_end - f->flush_start / PAGE_SIZE;
120+
(f->flush_end - f->flush_start) / PAGE_SIZE;
121121
addr = f->flush_start;
122122
while (addr < f->flush_end) {
123123
__flush_tlb_single(addr);

0 commit comments

Comments
 (0)