Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3429261yba; Mon, 8 Apr 2019 19:22:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqygU+gfWRZUFv3XLYC9JRbSZhrDvNoUYt/gfUSJvm8jN4rvDfAPxoQIyvYSBZK/B7sxm41C X-Received: by 2002:a63:29c8:: with SMTP id p191mr32113690pgp.197.1554776532797; Mon, 08 Apr 2019 19:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554776532; cv=none; d=google.com; s=arc-20160816; b=ZfqkM8Hy9/Vt0pdDhq70RyRDdBQP2ZwcRbfGg8G1ej/oOtaVaFDe+lL4y+lJzl7qHa zHMGUGgIoB0isyg9huaBFoskWsHInzLR55bkyiExsPTcCcAyvH0tTA+eotfQgfGpBWEY tgctBEIf7jigthc/BZ4YJ0XBLcJKs7XRgcU0UFq/QjWX9iRkvL5Yupgjzg//swIT0KVu HK0SFBuiZIfuA6xkckbkui3AmE5/Q0A346sY3RAwd50MhiSFNjMK5T+GxaSSbsjbUvSK R6w7m7NbmbqnHApVUaUnMS482uT5DvjLLaVOkoh+Avh6Q+9sxg141iFG8htob+eNSmfL Qr3w== 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=GH8NooYdMQsQua4iLhNuFdYJRzhhLRtnTL2de/0fSGo=; b=FB93tB00LI0E8k/VDiET/aUliOQNS41AgxAZtoICpYMO0AnslzilURgyE3P2FpNASg m11mpetS3iaAQ5GMNz3HHTUdL5wyXn79gEPQMYJRP2ZYwS9jePXyLBvFwzuPeCZNe0fl CKNxBqGe1GAnuxDLWmTLOjmA/db2Ik07J3DH/+Yi0m8hdhNasxejdqX1m8lFgcIuxT+U 6HpvhigQUe2ueZYZkylnhXAbjYM4t3tqG/aU6vaAPE7XeZR0d8Wx92eO6Dm/nMCOJ1v2 8LKOz6mUUn/Pqggz8t2IW42MvNU0TDPYuWPXnDUysYLB4Zi5Acy4j/HLO4zIMoVDBUg+ XssA== 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 x4si27976857plo.203.2019.04.08.19.21.56; Mon, 08 Apr 2019 19:22:12 -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 S1727022AbfDICGl (ORCPT + 99 others); Mon, 8 Apr 2019 22:06:41 -0400 Received: from mga18.intel.com ([134.134.136.126]:58325 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726133AbfDICGl (ORCPT ); Mon, 8 Apr 2019 22:06:41 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Apr 2019 19:06:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,327,1549958400"; d="scan'208";a="221742121" Received: from ranerica-svr.sc.intel.com ([172.25.110.23]) by orsmga001.jf.intel.com with ESMTP; 08 Apr 2019 19:06:39 -0700 Date: Mon, 8 Apr 2019 19:05:30 -0700 From: Ricardo Neri To: Thomas Gleixner Cc: "Paul E. McKenney" , 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 , "David S. Miller" , Benjamin Herrenschmidt , Paul Mackerras , Mathieu Desnoyers , Masami Hiramatsu , Andrew Morton , Philippe Ombredanne , Colin Ian King , Byungchul Park , "Luis R. Rodriguez" , Waiman Long , Josh Poimboeuf , Randy Dunlap , Davidlohr Bueso , Christoffer Dall , Marc Zyngier , Kai-Heng Feng , Konrad Rzeszutek Wilk , David Rientjes , sparclinux@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [RFC PATCH v2 09/14] watchdog/hardlockup: Make arch_touch_nmi_watchdog() to hpet-based implementation Message-ID: <20190409020530.GA7197@ranerica-svr.sc.intel.com> References: <1551283518-18922-1-git-send-email-ricardo.neri-calderon@linux.intel.com> <1551283518-18922-10-git-send-email-ricardo.neri-calderon@linux.intel.com> <20190227161758.GE4072@linux.ibm.com> <20190301011713.GA8058@ranerica-svr.sc.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:20:41PM +0100, Thomas Gleixner wrote: > On Thu, 28 Feb 2019, Ricardo Neri wrote: > > > > > > > > -#if defined(CONFIG_HARDLOCKUP_DETECTOR_PERF) > > > > +#if defined(CONFIG_HARDLOCKUP_DETECTOR_PERF) || \ > > > > + defined(CONFIG_X86_HARDLOCKUP_DETECTOR_HPET) > > > > > > Why not instead make CONFIG_X86_HARDLOCKUP_DETECTOR_HPET select > > > CONFIG_HARDLOCKUP_DETECTOR_PERF? Keep the arch-specific details > > > in the arch-specific files and all that. > > > > Thanks for your feedback, Paul! The HPET implementation does not use > > perf. Thus, in my opinion is not correct for the HPET HLD to select > > the perf implementation. Patch 8 of this series splits the perf-specific > > code and the generic hardlockup detector code. Does this make sense? > > That's what intermediate config symbols are for. > > config HARDLOCKUP_DETECTOR_CORE > bool > > And make both PERF and HPET select it. I'll implement it in this manner. Thanks and BR, Ricardo