Message ID | 170764089178.398.8282186862342058207.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-60665-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1833082dyd; Sun, 11 Feb 2024 00:43:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWMuVfkuT+7JVPqJbUOFf3MCc7440MItFGck623iCJkbmV+Snu9k4rorPpFcZJcI6s5EovkY8Od8Ga5rKV9tCGEVHuNVw== X-Google-Smtp-Source: AGHT+IG8SwqkMTNe4hR9WImm0HIvwf6oSPPf44kyyNcJhaJ9/aRN/IEuZq14YHzM5dPIk6dZEjQf X-Received: by 2002:a17:90a:17c4:b0:297:2130:c625 with SMTP id q62-20020a17090a17c400b002972130c625mr2645935pja.16.1707640993278; Sun, 11 Feb 2024 00:43:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707640993; cv=pass; d=google.com; s=arc-20160816; b=fx+HkreRmyfYeI7rehmeH3xX9wwxo2BSv9dSUJg8JI/36ra6DON2GLEhaJWwGGnp3k Wo1OJu/e/GUSu89VmVCf8su2Mk3BXQsfub+rOwRELhrjqliiFv0MCfiEXFHLVjoH0tB/ Q4qn6GOVWzoYkWDnX8XskXXMsIR/A4/zrDEPrcneE+au0N5iBzi2IomYMtR4rMrMWgZO KkVIWMdXhuP0S5PHxiK/7F8qL09xwr/g8qzBZCqJeFb5B0uHF2XZ26HKJcURsLCCCj30 F3nXRDSVnV7JrTu9exAbU0LeCJ7rSE4dOA5CLboMor2pNnd/a3zEBVzA8WWbC1OJf66M RDxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=saO3EDBD2W+LzkwxfyBQxJVlHOrm2xKpIUw0203BTt0=; fh=gWkclvKk1uxyrxsh9dp5jJLgR8srsAKjbjTrixVW6Gc=; b=mRYqJdCUW6iwBCD5xeMuIWpzXSEn2PIFH0tYMDMOqcjy9oxrWETPVGR+ZnIGU6KqIV kFrxAVpZHbAs1VMitgwr5CGYyfXKQwSARm2TjLjEspPyZeFFvB/fc9bAGXkw6qfgGpCt cCUG4XVmoaieGpsUFs2iLk98LHKVRGhnnBX9ZBmc/TaW+6nXxIwQIij2pmSL7ByY+0k4 96NwWkn7BTX9M/TKZDfZ6FCwuZPVw+kAGoQPF3uNx8OsNR5hrgRa6AtD5vFfVJpYz3GS piGauMePGGQYaWZv2n806Xq6d26AINyExJbx6QHWKJ8AdsqyP6d0ruLk5rSSGCHh2ryT MwRQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=YSCLRXM4; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-60665-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60665-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de X-Forwarded-Encrypted: i=2; AJvYcCUtklhz7eGm+RfUzZDtcYz7x7jkXiKNvEo/rHJn3Hm+BOeYTjdXFA61w2/adeFU5ksiLNXDU87wyqYYfEaFXWzSfUuTcw== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i10-20020a170902c94a00b001d93327867bsi4722805pla.286.2024.02.11.00.43.12 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 00:43:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60665-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=YSCLRXM4; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-60665-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60665-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5091BB208FC for <ouuuleilei@gmail.com>; Sun, 11 Feb 2024 08:43:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6FA05B5B0; Sun, 11 Feb 2024 08:41:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="YSCLRXM4"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="aqovQHQL" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28D5B59165; Sun, 11 Feb 2024 08:41:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707640895; cv=none; b=AGruyHgyNiW4JsX5C2BEb3CEIQ43cV59EPmUTyG5fEWDRJfQijxVW3ysPQF4xwZ+NFd3csK47RcoB48UgRP3L4zE7JZ/H0pADURJrcRKJmFi3El8H9tvQ72nvSqRTnwSG/h0CHJvxHzVz4iADuVxlxsIGeKGovMYCWUkdjx9HDg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707640895; c=relaxed/simple; bh=vkuQK2ZayrSuKQpNVzf/K60Vr4vkAluE2M1vZxSIxEw=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=fPDavXb7UaphaOE4GZ1fDTejtwG//eLnHdjDssasm6LvgA7SI9XNtzGLOA1Q73g2v0pfdhMLUI/ekS+F1w7wcE+yZ2ZnJOZzdm+5p+Q+7AkaSJXuEIJxmKY/3GpO+W6jVQxPxD8HLMG8XX+Fn01IQcLe1BoGS/Lel5Oa9H0viFc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=YSCLRXM4; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=aqovQHQL; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Sun, 11 Feb 2024 08:41:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1707640892; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=saO3EDBD2W+LzkwxfyBQxJVlHOrm2xKpIUw0203BTt0=; b=YSCLRXM4AMy//713+PYqaEFoMeVwEhK4kdR05H3/Gc61dGJyqgKL19k38NCTcQjZmL1zks Tx9MtWgoUzCZIl6KQ7tXbPt+vm1ZqR7h2DdplpmL9RmDDm2O3tg3AsOS7SVvmGfiwcIb1A RJc5ylTnlA+zjtMDi8Bi95ehtnnPTKxPXljBIWSAAH1ulVg7XxTxJlBKdfYNbPI9lMJMT7 wGhSUqrzmxQaq+/Qj8VPsrGgF+wi24l1Un5ve+T0mTL+HJsjAfbpNc4wU91/XSY/sqLFD1 HA2plMO5Oq+k92PyLGuoB+pGReYwS8fHuEOTEwGN2xxT8r24qDG2r1bL6J4P7A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1707640892; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=saO3EDBD2W+LzkwxfyBQxJVlHOrm2xKpIUw0203BTt0=; b=aqovQHQLdM/feHq29GapVQTv3gYDGP5SYlY33m1FLmld74xuSzZOni8BdnCwN9tX/9fR3W sMTh+0ifMUN2l5DQ== From: "tip-bot2 for Peter Hilber" <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/ptp] timekeeping: Add clocksource ID to struct system_counterval_t Cc: Peter Hilber <peter.hilber@opensynergy.com>, Thomas Gleixner <tglx@linutronix.de>, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240201010453.2212371-3-peter.hilber@opensynergy.com> References: <20240201010453.2212371-3-peter.hilber@opensynergy.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Message-ID: <170764089178.398.8282186862342058207.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789656756707628713 X-GMAIL-MSGID: 1790591361747692763 |
Series |
[tip:,timers/ptp] timekeeping: Add clocksource ID to struct system_counterval_t
|
|
Commit Message
tip-bot2 for Thomas Gleixner
Feb. 11, 2024, 8:41 a.m. UTC
The following commit has been merged into the timers/ptp branch of tip: Commit-ID: 93630d6df7507fa4e664110b1878c06a0c00b0b9 Gitweb: https://git.kernel.org/tip/93630d6df7507fa4e664110b1878c06a0c00b0b9 Author: Peter Hilber <peter.hilber@opensynergy.com> AuthorDate: Thu, 01 Feb 2024 02:04:47 +01:00 Committer: Thomas Gleixner <tglx@linutronix.de> CommitterDate: Wed, 07 Feb 2024 17:05:21 +01:00 timekeeping: Add clocksource ID to struct system_counterval_t Clocksource pointers can be problematic to obtain for drivers which are not clocksource drivers themselves. In particular, the RFC virtio_rtc driver [1] would require a new helper function to obtain a pointer to the ARM Generic Timer clocksource. The ptp_kvm driver also required a similar workaround. Add a clocksource ID member to struct system_counterval_t, which in the future shall identify the clocksource, and which shall replace the struct clocksource * member. By this, get_device_system_crosststamp() callers (such as virtio_rtc and ptp_kvm) will be able to supply easily accessible clocksource ids instead of clocksource pointers. [1] https://lore.kernel.org/lkml/20231218073849.35294-1-peter.hilber@opensynergy.com/ Signed-off-by: Peter Hilber <peter.hilber@opensynergy.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20240201010453.2212371-3-peter.hilber@opensynergy.com --- include/linux/timekeeping.h | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/include/linux/timekeeping.h b/include/linux/timekeeping.h index 7c43e98..ca234fa 100644 --- a/include/linux/timekeeping.h +++ b/include/linux/timekeeping.h @@ -273,10 +273,15 @@ struct system_device_crosststamp { * @cycles: System counter value * @cs: Clocksource corresponding to system counter value. Used by * timekeeping code to verify comparibility of two cycle values + * @cs_id: Clocksource ID corresponding to system counter value. To be + * used instead of cs in the future. + * The default ID, CSID_GENERIC, does not identify a specific + * clocksource. */ struct system_counterval_t { u64 cycles; struct clocksource *cs; + enum clocksource_ids cs_id; }; /*