Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6283954ybe; Wed, 18 Sep 2019 00:34:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqz79fcN3KzI4Em1sbYsE97G3FO6CK5Etk17HdJBqwJ/9m862EsFptR0lrYtuiYoyhJUnx+P X-Received: by 2002:a50:d089:: with SMTP id v9mr9040009edd.54.1568792056962; Wed, 18 Sep 2019 00:34:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568792056; cv=none; d=google.com; s=arc-20160816; b=NF0piURchapyihh9OCiv1Z5HNgAF2S5Lr3015fg/IUwvBYYw83LfMEFVrG1d2Rr6aj tpZX4HQ3KjRh0OyFrJSNU5Pvrg6bZ8fracVfdIhxptTa06bXv5fAh9NxlsiRIFYWRq59 J0mH6dEcWeY7KmRj4Sfk9yRn3DmVEwLHp9jdnFbrgAiCICRRAi+HdMPGYjuhyLmLl3Bb eb89wvZI+Fu7JNh7117PcA4lK38f5hU+ey2hJXP4HdhAYbkIR7Zpk5GmVGJuOFKbsrxv cwas6favvRy0L+37CfqwzNjSJRxhT/otKhio7QYgfOG3IwFA6Ofrgw0FLeCFqnBJCvY0 T8FQ== 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:dkim-signature; bh=GbKlbpTFe+CN6SKqbKlc9mQcgb7sBfZRnKgAQN3AI1c=; b=lVvScfeRd7xFYXY+uYMUNaK6vk8qDYp6Qn4xPvyrkynjkQcRR6ijw+TQJ6/Y/3YX1W I3su3BqGbUtSe8WIYjJQKIJg9gVNSF0SCHgaeS1sSqgCQRVDU5FJkxopBMLk6yeFjZkD RhMH8ChxYblC+NVv2SFrf7DoKAKCNC33mBqKosCHyZc1gcgKcS7rGblJ7aWr7RVWTBy7 ZlttS7D3x0hyRMEwVeMNXPBLPBLXiMIAeAU0yZoKNpTrURYX/tdEh9W7gs8XcQSLcCXB 8SOE8/A9cPWBS5YWsXUcopuLCVUJn3zuM+oYQqMMDnJPS+947ujhGXxaSqYF/Rsa0VhD sOxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BXmh30TE; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j11si2987482edj.43.2019.09.18.00.33.52; Wed, 18 Sep 2019 00:34:16 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BXmh30TE; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728399AbfIRDmk (ORCPT + 99 others); Tue, 17 Sep 2019 23:42:40 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:35898 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728301AbfIRDmj (ORCPT ); Tue, 17 Sep 2019 23:42:39 -0400 Received: by mail-pf1-f195.google.com with SMTP id y22so3456252pfr.3; Tue, 17 Sep 2019 20:42:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=GbKlbpTFe+CN6SKqbKlc9mQcgb7sBfZRnKgAQN3AI1c=; b=BXmh30TEdIEExjRnV42l+vfzdAPAD/riGCZ7IGy53Z0oadUQcEpZgqiw024GpCiSq8 NcizBJivS4lGx4OFb7vZPgLvHK8tM/KgFGWseCGnc0Jq7rALDywN/Inxh+NR32tUJKby 7+cbX14kBGQ/C+JTIUDbxcnQeYbv9b7du5xjArn7Fz9gc52iX0hXQXy91a7hKR6vhP4i eCQTiL+hpsslW1kg5MoLRgQu61dcQnBf/X0i+dg7irCtegc7acCSboWsHkp4rNTnpyx3 lG9ZuPq4a8uvsV+nEI8o2dvsvrGxw67x10BLJLSJCEbnqe9/zZ7HKZnVXiKCaAnNrCJc n/Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=GbKlbpTFe+CN6SKqbKlc9mQcgb7sBfZRnKgAQN3AI1c=; b=IjVFzYBBlE2VIZ32C2wxPLjRQc1hBoExXRtDUuuda29moJ44rmFn+Fm6OlDV3JSuMf S+siG5xEBTXEd1+TItfktoW7jfmrLIiHWin3yiq0Lsh/LyIXrA86dhOzCXPbS36hAORv yUhgnIj95jxsBLtErl2mYzJq1e0XGD3+jleSu3O4r1QKxYIdqiski8Li5lfjoRmH40VM Se4b627V6r5M6cPPk1q71N8Q5v7nFrXSDqmpRptUaQeP0OItijZ1PjWaP75RhihQnEfL 6mjpyYj9Yk6I4eO+3P7JTFCu/FHGx4PC3Y9uYIh+GuWvvtuk1mbkgZ5ZgRBiS1PrXpNN pnJA== X-Gm-Message-State: APjAAAX4jWAAenDJEZSNqV6iyBRcpaJ0kEPJs0iafV+Y0ZS/eS5OdrCa /ZMv/JV6DNUxfjGApuYOjWU= X-Received: by 2002:a62:1402:: with SMTP id 2mr1920506pfu.226.1568778159141; Tue, 17 Sep 2019 20:42:39 -0700 (PDT) Received: from localhost (c-73-241-114-122.hsd1.ca.comcast.net. [73.241.114.122]) by smtp.gmail.com with ESMTPSA id n21sm652294pjo.21.2019.09.17.20.42.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Sep 2019 20:42:38 -0700 (PDT) Date: Tue, 17 Sep 2019 20:42:35 -0700 From: Richard Cochran To: Jianyong Wu Cc: netdev@vger.kernel.org, pbonzini@redhat.com, sean.j.christopherson@intel.com, maz@kernel.org, Mark.Rutland@arm.com, Will.Deacon@arm.com, suzuki.poulose@arm.com, linux-kernel@vger.kernel.org, Steve.Capper@arm.com, Kaly.Xin@arm.com, justin.he@arm.com, nd@arm.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 3/6] Timer: expose monotonic clock and counter value Message-ID: <20190918034235.GA1469@localhost> References: <20190917112430.45680-1-jianyong.wu@arm.com> <20190917112430.45680-4-jianyong.wu@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190917112430.45680-4-jianyong.wu@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 17, 2019 at 07:24:27AM -0400, Jianyong Wu wrote: > A number of PTP drivers (such as ptp-kvm) are assuming what the > current clock source is, which could lead to interesting effects on > systems where the clocksource can change depending on external events. > > For this purpose, add a new API that retrives both the current > monotonic clock as well as its counter value. > > Signed-off-by: Marc Zyngier > Signed-off-by: Jianyong Wu > --- > include/linux/timekeeping.h | 3 +++ > kernel/time/timekeeping.c | 13 +++++++++++++ > 2 files changed, 16 insertions(+) For core time keeping changes, you must CC lkml, tglx, and John Stultz. Thanks, Richard