Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932846AbbDQPkJ (ORCPT ); Fri, 17 Apr 2015 11:40:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48725 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753790AbbDQPkG (ORCPT ); Fri, 17 Apr 2015 11:40:06 -0400 Date: Fri, 17 Apr 2015 11:40:05 -0400 From: Don Zickus To: Ulrich Obergfell Cc: linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 1/1] watchdog: fix watchdog_nmi_enable_all() Message-ID: <20150417154005.GO98296@redhat.com> References: <1429262796-3472-1-git-send-email-uobergfe@redhat.com> <1429262796-3472-2-git-send-email-uobergfe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1429262796-3472-2-git-send-email-uobergfe@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1196 Lines: 39 On Fri, Apr 17, 2015 at 11:26:36AM +0200, Ulrich Obergfell wrote: > The 'watchdog_user_enabled' variable is only used as an 'interface' > to the /proc/sys/kernel/watchdog parameter. The actual state of the > watchdog is tracked by bits in the 'watchdog_enabled' variable. So, > watchdog_nmi_enable_all() should check the NMI_WATCHDOG_ENABLED bit > in 'watchdog_enabled'. Looks good. I'll respin this and send to Andrew on Monday. Cheers, Don > > Signed-off-by: Ulrich Obergfell > --- > kernel/watchdog.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/watchdog.c b/kernel/watchdog.c > index 2316f50..cba2110 100644 > --- a/kernel/watchdog.c > +++ b/kernel/watchdog.c > @@ -608,7 +608,7 @@ void watchdog_nmi_enable_all(void) > { > int cpu; > > - if (!watchdog_user_enabled) > + if (!(watchdog_enabled & NMI_WATCHDOG_ENABLED)) > return; > > get_online_cpus(); > -- > 1.7.11.7 > -- 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/