Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3420534yba; Mon, 8 Apr 2019 19:06:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsyQl2FUxH0Dt7hAovIdXv1B+MrgIHXOF229Xwcbg1VaYVVe2P06iD58mX5icLjh7N7r/x X-Received: by 2002:a17:902:2927:: with SMTP id g36mr34291575plb.57.1554775610141; Mon, 08 Apr 2019 19:06:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554775610; cv=none; d=google.com; s=arc-20160816; b=d8epWxf2yYx++kBeNy6qNtncZJHLqKmxH2fmt73QDRyEfGkheYaVlMprcK/v7uVXLa iDw+X84kS9uoqFjDojrgtB6IN6QCbGnwiXW5kB6+09JpWwINJKxdrebCpaQmkFJrhfKR XKMRqVgRGRygc+alWg8ql1Fx9dZ+Lp7GffD0j/x3bggfkG5zP+xhCCSF7uzTOezx+OdS DzmD3Z1juN6r9zGEihwcQI6P8YDQw43Xzf0URvkI2xQHTNIJLc+fTPR6v8uSOq0/w76L +H93YfqHiz5QklGp8qIzkBf1uN3pBaqeyu+GVLSeeJDAvwlmjB7brhEAy1ud7qN3x6UL i9FA== 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=Yjd/sXl6ydh7BF5TIyYvjaP8P88gVHU+jJ4uKaHIDOI=; b=NUKLdMg5IpFac9WoemVFTp3y+fRHAAVOnu2LE+DT0maqkI/bVo+QamvNvitQk3zvAH +hKmhuKxZICQKb+1vStwm3Qowi0pWut+IECBwds7wKfQ0JdTvgA8xhHnrOy4qLAWEGb0 Q1T1FA0Ihk+kRnHBuCGiJGm9+dFDRM0hW5HIPkOYV8sFqQ68c+hLfKKO7kgloRWqlyB/ g8ycaC8Dc2tKNdEfXLBsE2E6zgwf99VE+YaH+FqEDHGQ3VwJm2zEeFQioLzBWDO/Eso7 r74u+aDZqtQIhIYUJ7QdGAWB74clUC/0FEaEz3ueypHWuEUZyrIik+AlC7yw8MSZPFq6 c8aQ== 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 n15si28510624pgg.308.2019.04.08.19.06.34; Mon, 08 Apr 2019 19:06:50 -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 S1726884AbfDICFm (ORCPT + 99 others); Mon, 8 Apr 2019 22:05:42 -0400 Received: from mga05.intel.com ([192.55.52.43]:2179 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726133AbfDICFm (ORCPT ); Mon, 8 Apr 2019 22:05:42 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Apr 2019 19:05:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,327,1549958400"; d="scan'208";a="221741995" Received: from ranerica-svr.sc.intel.com ([172.25.110.23]) by orsmga001.jf.intel.com with ESMTP; 08 Apr 2019 19:05:41 -0700 Date: Mon, 8 Apr 2019 19:04:32 -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 , Clemens Ladisch , Arnd Bergmann , Philippe Ombredanne , Kate Stewart , "Rafael J. Wysocki" Subject: Re: [RFC PATCH v2 05/14] x86/hpet: Relocate flag definitions to a header file Message-ID: <20190409020432.GA7102@ranerica-svr.sc.intel.com> References: <1551283518-18922-1-git-send-email-ricardo.neri-calderon@linux.intel.com> <1551283518-18922-6-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:11:16PM +0100, Thomas Gleixner wrote: > On Wed, 27 Feb 2019, Ricardo Neri wrote: > > > Users of HPET timers (such as the hardlockup detector) need the definitions > > of these flags to interpret the configuration of a timer as passed by > > platform code. > > Which platform code? Sorry, it is not platform code. Shall I call it the HPET-enabling code? > > > +#define HPET_DEV_USED_BIT 2 > > +#define HPET_DEV_USED (1 << HPET_DEV_USED_BIT) > > +#define HPET_DEV_VALID 0x8 > > +#define HPET_DEV_FSB_CAP 0x1000 > > +#define HPET_DEV_PERI_CAP 0x2000 > > I'm not seing why you would need any of those in the watchdog code. > > The only function related to the watchdog which needs these is > hpet_hardlockup_detector_assign_timer() and that is located in hpet.c > itself. Yes, I see now that it is not needed. This patch can be removed. Thanks and BR, Ricardo