From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754897AbbGUJhP (ORCPT ); Tue, 21 Jul 2015 05:37:15 -0400 Received: from terminus.zytor.com ([198.137.202.10]:40307 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754871AbbGUJhM (ORCPT ); Tue, 21 Jul 2015 05:37:12 -0400 Date: Tue, 21 Jul 2015 02:36:36 -0700 From: tip-bot for Dave Hansen Message-ID: Cc: mingo@kernel.org, dave.hansen@linux.intel.com, torvalds@linux-foundation.org, hpa@zytor.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, peterz@infradead.org, akpm@linux-foundation.org, stable@vger.kernel.org Reply-To: peterz@infradead.org, akpm@linux-foundation.org, stable@vger.kernel.org, dave.hansen@linux.intel.com, torvalds@linux-foundation.org, mingo@kernel.org, linux-kernel@vger.kernel.org, hpa@zytor.com, tglx@linutronix.de In-Reply-To: <20150720230153.9E834081@viggo.jf.intel.com> References: <20150720230153.9E834081@viggo.jf.intel.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/urgent] x86/mm: Add parenthesis for TLB tracepoint size calculation Git-Commit-ID: bbc03778b9954a2ec93baed63718e4df0192f130 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: bbc03778b9954a2ec93baed63718e4df0192f130 Gitweb: http://git.kernel.org/tip/bbc03778b9954a2ec93baed63718e4df0192f130 Author: Dave Hansen AuthorDate: Mon, 20 Jul 2015 16:01:53 -0700 Committer: Ingo Molnar 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 Cc: Andrew Morton Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: dave@sr71.net Cc: Link: http://lkml.kernel.org/r/20150720230153.9E834081@viggo.jf.intel.com Signed-off-by: Ingo Molnar --- 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);