Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3440966yba; Mon, 8 Apr 2019 19:43:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3jBnUNPvey2y8FldgrJIcI1XY5N0DmHilY29mt/0mcEpsipAJ5hsxmzCHhDJo+7uvKy3A X-Received: by 2002:a62:6985:: with SMTP id e127mr33986630pfc.188.1554777838887; Mon, 08 Apr 2019 19:43:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554777838; cv=none; d=google.com; s=arc-20160816; b=NN15W4++dIQmqinFDP7nKDoDQ4D0XTCRxyylKbxyYmf/73kIE972TXrTp1XrZpix/T 7FfEvrIKfXvxFAMleEexq/PdiICqGKAbqKt4Y0repfc/MUiqxIJJTg/qJcj+7Xsi2qCF l3Xbd4ViWF+Yi8y8p5+blYPjOnU3aw6eNJ4ZwEW3Awz6z2PqMs32uVF0su6HYxxz+6Fe ekyryEXZri3lQ4vF/MiGFr949gVyME6xHO/oOj33MhAZ2IBaRBsueRUmo+tWqXenDQJQ N1lhu45U++GiT3+jD+fDV/i60sPxmbTnFm1kNCRkiXa4fYVUQeXnKwyBP/ryqj6ic5RR R5eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=bjK1dlvXLviKZOMR2z0MRsX/RMosqxpyBXvL5RO0WZc=; b=RbI8oM7avKPDb0IWVdhjP3mqKtNOGLNe7WPEzfwElgcZzKTbL5GDwWqeOeDC2yFonG GRRuQnSc3Xg3KGHb51aIXOqFATIuGMDP2F1A0fKO1NkyVLpVUOLeW4KBS1rfjDo+OPHp waExo2WTA2MMRxhtHoEqHdDJZB5rPr/I07K+lZJXc5r6hYp0+MdVB4ipj6BQvRfFqVLG GWxhIlXpxcqhrtxcEQxb+oz+xE6voox4Rf0U3L9uLLSJz4dLVxSQHWDNagifxMwJV0RA 2bmVSQ25i1Y+eAjFblVsrLuaORwvQ5rNKLuJpxy8H37vpHtEaLd2ezMB1q+ezhYSf/d0 UZyQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y13si19310152pgf.252.2019.04.08.19.43.30; Mon, 08 Apr 2019 19:43:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727056AbfDICHE (ORCPT + 99 others); Mon, 8 Apr 2019 22:07:04 -0400 Received: from mga02.intel.com ([134.134.136.20]:24019 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726133AbfDICHE (ORCPT ); Mon, 8 Apr 2019 22:07:04 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Apr 2019 19:07:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,327,1549958400"; d="scan'208";a="221742173" Received: from ranerica-svr.sc.intel.com ([172.25.110.23]) by orsmga001.jf.intel.com with ESMTP; 08 Apr 2019 19:07:02 -0700 Date: Mon, 8 Apr 2019 19:05:53 -0700 From: Ricardo Neri To: Thomas Gleixner Cc: Ingo Molnar , Borislav Petkov , Ashok Raj , Andi Kleen , Peter Zijlstra , "Ravi V. Shankar" , x86@kernel.org, linux-kernel@vger.kernel.org, Ricardo Neri , "H. Peter Anvin" , Tony Luck , "Rafael J. Wysocki" , Don Zickus , Nicholas Piggin , Michael Ellerman , Frederic Weisbecker , Alexei Starovoitov , Babu Moger , Paul Mackerras , Mathieu Desnoyers , Masami Hiramatsu , Andrew Morton , Philippe Ombredanne , Colin Ian King , Byungchul Park , "Paul E. McKenney" , "Luis R. Rodriguez" , Waiman Long , Josh Poimboeuf , Randy Dunlap , Davidlohr Bueso , Christoffer Dall , Marc Zyngier , Kai-Heng Feng , Konrad Rzeszutek Wilk , David Rientjes , "David S. Miller" , Benjamin Herrenschmidt , sparclinux@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [RFC PATCH v2 10/14] kernel/watchdog: Add a function to obtain the watchdog_allowed_mask Message-ID: <20190409020553.GA7228@ranerica-svr.sc.intel.com> References: <1551283518-18922-1-git-send-email-ricardo.neri-calderon@linux.intel.com> <1551283518-18922-11-git-send-email-ricardo.neri-calderon@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 26, 2019 at 10:22:40PM +0100, Thomas Gleixner wrote: > On Wed, 27 Feb 2019, Ricardo Neri wrote: > > > > -struct cpumask watchdog_allowed_mask __read_mostly; > > +static struct cpumask watchdog_allowed_mask __read_mostly; > > That hunk is correct. I'll send a separate patch with this hunk only. > > > struct cpumask watchdog_cpumask __read_mostly; > > unsigned long *watchdog_cpumask_bits = cpumask_bits(&watchdog_cpumask); > > @@ -92,6 +92,11 @@ static int __init hardlockup_all_cpu_backtrace_setup(char *str) > > } > > __setup("hardlockup_all_cpu_backtrace=", hardlockup_all_cpu_backtrace_setup); > > # endif /* CONFIG_SMP */ > > + > > +struct cpumask *watchdog_get_allowed_cpumask(void) > > +{ > > + return &watchdog_allowed_mask; > > +} > > That part is pointless as I showed you in the other reply. You don't need > that mask in your code at all. Yes. I'll remove this hunk and follow the approach you suggested in your reply to patch 11. Thanks and BR, Ricardo > > Thanks, > > tglx > >