Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7338856ybp; Wed, 16 Oct 2019 07:22:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTGWGoAPge3P7z4sqFhgKMNyf69Du8kV72jNaTLcT8pccCYrVMkSrmG8je4Zd8ImDbdqyA X-Received: by 2002:a17:906:3053:: with SMTP id d19mr41078242ejd.109.1571235757244; Wed, 16 Oct 2019 07:22:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571235757; cv=none; d=google.com; s=arc-20160816; b=jU492/GaN3l6vLsZ0QopLx56FmIEIONggUaWlWGo7FazH1ZoEYHUb+5hVEPOWVs/EK byDSmQiLgCy99i5w1cNQ7KllOp2+aj/ThLhmOJ4IUtntq5Ay08xr2TdcPAb7w1xB+rS7 Y2CzYehi5mXbpPp7gZyeeIKiIN65AsYV7ZFNF9ECIjKF2+LcVu288M2Hyi07FKGL0zxz ZoA3YYdirDuJ3SC7CMM8pPV/lCWcXQeBngt1C4Wo5BwlzMiyItibCPq4DnCNRQvjJ8hX BOIpslmYNtixdlwQnXTwQQ4mviirUtUzxbpN/w8EhV4PEo5BB7eS39cmneR2S72WtyAP a80A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=eIKTmvI2vHSYxkKB2ho5K8O8+zj91B6VT/+K4ICTOuw=; b=NX2/I1cgFfVjL9XpVuPta69ETFqJZ4UzQsJ4iLh777e+IY7fTW7CFbzpqUYfFBfWWT /ibk8OHL1S1/TzKJPF7i7P0kN1VHcP9oJcfAQol87JhqXYgB9adPC5PN7YvrXPl/vwZm +KppgU1mTHKMAgfLHiIL4U743I4PzQX8gVKn+e2u9FMYMjWLa0HqXKdMvyVObD88dC1t sPBZlBBoWK25WaX/mLGx7pubass8ltyDz+wRVJwYJbai7RaJSH1TlJXc110IRWhCZE1V 8d2wqsEHqcqJRsZ75VYa7/wvA9vX7JmnIYYMmcHWLmQGfWq64hM4pwCl19xE/Ko/zhdH icog== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g50si17779120edb.47.2019.10.16.07.22.13; Wed, 16 Oct 2019 07:22:37 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392419AbfJPK0Z (ORCPT + 99 others); Wed, 16 Oct 2019 06:26:25 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:49627 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730972AbfJPK0Y (ORCPT ); Wed, 16 Oct 2019 06:26:24 -0400 Received: from [5.158.153.52] (helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iKgVU-0002kt-VI; Wed, 16 Oct 2019 12:26:17 +0200 Date: Wed, 16 Oct 2019 12:26:16 +0200 (CEST) From: Thomas Gleixner To: "Jianyong Wu (Arm Technology China)" cc: "netdev@vger.kernel.org" , "yangbo.lu@nxp.com" , "john.stultz@linaro.org" , "pbonzini@redhat.com" , "sean.j.christopherson@intel.com" , "maz@kernel.org" , "richardcochran@gmail.com" , Mark Rutland , "will@kernel.org" , Suzuki Poulose , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "kvmarm@lists.cs.columbia.edu" , "kvm@vger.kernel.org" , Steve Capper , "Kaly Xin (Arm Technology China)" , "Justin He (Arm Technology China)" , nd Subject: RE: [PATCH v5 3/6] timekeeping: Add clocksource to system_time_snapshot In-Reply-To: Message-ID: References: <20191015104822.13890-1-jianyong.wu@arm.com> <20191015104822.13890-4-jianyong.wu@arm.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 16 Oct 2019, Jianyong Wu (Arm Technology China) wrote: > On Wed, 16 Oct 2019, Thomas Gleixner wrote: > > On Tue, 15 Oct 2019, Jianyong Wu wrote: > > +/* Enum to give clocksources a unique identifier */ enum > > +clocksource_ids { > > + CSID_GENERIC = 0, > > + CSID_ARM_ARCH_COUNTER, > > + CSID_MAX, > > +}; > > + > > Does this mean I must add clocksource id for all kinds of ARCHs and > update all the code which have checked clocksource in the old way? What is the old way? No code exists which can access the current clocksource pointer because the core code does not expose it at all. Thanks, tglx