Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755384AbbBUAOL (ORCPT ); Fri, 20 Feb 2015 19:14:11 -0500 Received: from dragon.rutgers.edu ([128.6.4.3]:58721 "EHLO dragon.rutgers.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754954AbbBUAOJ (ORCPT ); Fri, 20 Feb 2015 19:14:09 -0500 X-ExtScanner: Niversoft's Regex Matcher X-Spam-ASN: X-Spam-Relay-Country: X-Spam-Language: From: Zi Yan To: linux-kernel@vger.kernel.org Cc: Zi Yan , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Dave Hansen , Rik van Riel , Mel Gorman , Jeremiah Mahler Subject: [PATCH] tracing: correct the nr_page calculation in remote tlb shootdown Date: Fri, 20 Feb 2015 19:13:35 -0500 Message-Id: <1424477615-3550-1-git-send-email-zi.yan@cs.rutgers.edu> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1196 Lines: 36 Add parenthesis to make the calculation correct. Signed-off-by: Zi Yan Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x86@kernel.org Cc: Dave Hansen Cc: Rik van Riel Cc: Mel Gorman Cc: Jeremiah Mahler Cc: linux-kernel@vger.kernel.org --- arch/x86/mm/tlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/mm/tlb.c b/arch/x86/mm/tlb.c index 3250f23..90b924a 100644 --- a/arch/x86/mm/tlb.c +++ b/arch/x86/mm/tlb.c @@ -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); -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/