From: "Jan Beulich" Subject: Re: [PATCH 1/4] x86/nmi: remove spurious local_irq_enable from check_nmi_watchdog() Date: Wed, 14 May 2014 14:53:05 +0100 Message-ID: <537391610200007800012370@mail.emea.novell.com> References: <1400072299-2285-1-git-send-email-david.vrabel@citrix.com> <1400072299-2285-2-git-send-email-david.vrabel@citrix.com> <53738B020200007800012311@mail.emea.novell.com> <5373703D.2030308@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WkZcO-0000R1-E3 for xen-devel@lists.xenproject.org; Wed, 14 May 2014 13:53:12 +0000 In-Reply-To: <5373703D.2030308@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: David Vrabel Cc: xen-devel@lists.xenproject.org, Keir Fraser List-Id: xen-devel@lists.xenproject.org >>> On 14.05.14 at 15:31, wrote: > On 14/05/14 14:25, Jan Beulich wrote: >>>>> On 14.05.14 at 14:58, wrote: >>> All callers of check_nmi_watchdog() already have local irqs enabled so >>> remove the unpaired local_irq_enable(). >>> >>> Signed-off-by: David Vrabel >>> --- >>> xen/arch/x86/nmi.c | 1 - >>> 1 file changed, 1 deletion(-) >>> >>> diff --git a/xen/arch/x86/nmi.c b/xen/arch/x86/nmi.c >>> index 526020b..18d3820 100644 >>> --- a/xen/arch/x86/nmi.c >>> +++ b/xen/arch/x86/nmi.c >>> @@ -126,7 +126,6 @@ int __init check_nmi_watchdog (void) >>> >>> for_each_online_cpu ( cpu ) >>> prev_nmi_count[cpu] = nmi_count(cpu); >>> - local_irq_enable(); >> >> I guess this will want to be replaced by a suitable ASSERT(), to make >> sure eventual new callers adhere to the described rule. > > smp_call_function() and on_selected_cpus() which is where this matters > already has such an ASSERT() so I don't think another one needs to be > added here. Okay, that's true. Jan