Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1331653lqe; Mon, 8 Apr 2024 06:12:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV/2Fqqd6ZO/o02h41cczmKuhW/4rJVV3TnwJ+B97vgy6FZJLDkX+WTrzKmLJGok1phk4aV6z4rU78jXlnKto3o29trYrupX0DAn/0Z/A== X-Google-Smtp-Source: AGHT+IFgA4CR5UFHL21bGq4z4Jl/x/U1MgET58tDKb07wF4/J/iCiDuysXL52YmlIZX34toZXqs4 X-Received: by 2002:a05:6a00:806:b0:6ea:ed87:1348 with SMTP id m6-20020a056a00080600b006eaed871348mr12307205pfk.13.1712581949388; Mon, 08 Apr 2024 06:12:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712581949; cv=pass; d=google.com; s=arc-20160816; b=ZH2uDt5oy/4+IFD/w1C/RU+Irqrfm38x1CB64aI1TJyZeV8ZmA8Vwh39JlVOuyJl6m RHVW/DHfFKpt/CY8Q3vdbZ4Is321fdRpL4mI5hpcP6R3S/OeacztDmU8uCSBu5hQV28A dAKEFT7RY6/Nv4rf16RTIITGu5KcATPwGndbgQuROsrRWg0hVoJkLzgJKqk/q5De/4Nb 2vksIkpxKWVT4sF6HxglVimz8ErGQ89kkaEAWw1gTGNAT2SfADP2oGCFKnwjSd1K0PE6 0S3Rb3G2uUaF1oHoUcYZw+Ic3AqHYJ0Nx7E+exbUcqObvRpuGdE7umZ7Q5Yq6lnwUWK4 U0hg== 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=1x0tlFyxQ8Z6qbHTFiwYSz6qyeTZpJxwo7ZO26tYE1o=; fh=HIrP3i0WQwu8zLnKtb1acHgteo695uCSG6Yk5OndRkw=; b=wgeFjMKaaGto6YFblMIv6/APMWVsKFMQ5v+xPwQJvpn2NWQ9w+aeG528V2NeY6GF4T ipfTtQlDEvcwXXvTikfes6EpGr9MizdhPsJWFYStWb0Sro+HJfOMXfi/xHhM5tiAMnDD qeymPxzFVgBAPTOc6iVAK/YFfH4pTiGU+f44Uj9txPKXCmnU1kIhtCiSWKJTRGTnSe0z Fp2qnJ93Tv6/LOQOieVh9XBix1SV9+CmMD6jwiUJa53x3YsbrfAOO/Uac0rufAdVarIa B69E27g6VFPPgVfGqP20tsyKdKzYk0xrvNBAIevnll9LFLMMhTBJR2Vb1PVKAz7KroR3 jHFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=2suEfzCQ; 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-135397-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135397-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d4-20020a056a0010c400b006e628dd06efsi2893182pfu.260.2024.04.08.06.12.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 06:12:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135397-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=2suEfzCQ; 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-135397-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135397-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1447C281540 for ; Mon, 8 Apr 2024 13:12:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AEAB67EF1B; Mon, 8 Apr 2024 13:10:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="2suEfzCQ"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="jpH1KJxE" 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 58E077E0E4; Mon, 8 Apr 2024 13:10:40 +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=1712581841; cv=none; b=TFfqCuumTfwom0pP12EtIGkhK4dn2PMqoLy0YRIvkmjQsfIzTjS3byWcKjZnFrV4D7k4ZEhuf2iOFSBDtRM7b6ZZbfrg6VpNrLzkMzNu3eFb8emx8JZQWCH1y0vcUzfyVcLDKLQU6gmxRXtayjzEzRU31t3rIHIWBjRhaoM11rc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712581841; c=relaxed/simple; bh=tltP1uCdPOugjN6M8Qo9rTw2JecOQMSMfnmAwN0uChk=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=tk75H+vQHd3IN5J1V+zK7+3yjLwGEAnTEowMvDDg+B0SbG6iml7Zyh1TmRl9Hb9/WPDq6o3qJafQg5iNf/MKN4BfJW6wxfRKBM8mAI+0QZ7sAf/kj0pje6Li33fFlppg3u1ghSbKJG2SgLpJb+0zvY0XGE4Zr6v5zEE7mn1cLRY= 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=2suEfzCQ; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=jpH1KJxE; 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: Mon, 08 Apr 2024 13:10:37 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1712581839; 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=1x0tlFyxQ8Z6qbHTFiwYSz6qyeTZpJxwo7ZO26tYE1o=; b=2suEfzCQPmskIcWBNvIy9fpw7m/hZIG8hCVDlkl89FswyLJrAoYCRWMQwbIaESj3oPApXa yGdeOeBN54GJLwSNx9jINzBXLRrU86clTLFvlfIb2OzI1lJkQN/xBl6jhu9AOTfPZ9v6Xm 2jxUR7i1iM8RZSCIxmVPD4NJGymgIjOKL/RoaN8hDTURV6aHeL8rto2nbswcVBlGNlKgxm gMkeTi4H74XEWobEbafmvslQ45JIlDDQ0R6BKOXwSmsy00cyF8l1ZwfuBTi+Zy/3VmfX8Z X7c/qAEuTGSylZrP+K/X64J2lxutazAj9Vu4D0hPuA2QMgVELLKtRPI+lqHPqg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1712581839; 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=1x0tlFyxQ8Z6qbHTFiwYSz6qyeTZpJxwo7ZO26tYE1o=; b=jpH1KJxE/LeteTV61+/hmIzzQPtdwyIf85X8bJs51P6QlehHUh5cauQOsFO5KXEPun4i3q V6lc6YM5aqI66rAw== From: "tip-bot2 for Adrian Hunter" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] timekeeping: Rename fast_tk_get_delta_ns() to __timekeeping_get_ns() Cc: Thomas Gleixner , Adrian Hunter , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240325064023.2997-11-adrian.hunter@intel.com> References: <20240325064023.2997-11-adrian.hunter@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171258183799.10875.775118297225382255.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the timers/core branch of tip: Commit-ID: a729a63c6b2ebd8bc37646519d404f005ea8f1b2 Gitweb: https://git.kernel.org/tip/a729a63c6b2ebd8bc37646519d404f005ea8f1b2 Author: Adrian Hunter AuthorDate: Mon, 25 Mar 2024 08:40:14 +02:00 Committer: Thomas Gleixner CommitterDate: Mon, 08 Apr 2024 15:03:07 +02:00 timekeeping: Rename fast_tk_get_delta_ns() to __timekeeping_get_ns() Rename fast_tk_get_delta_ns() to __timekeeping_get_ns() to prepare for its reuse as a general timekeeping helper function. Suggested-by: Thomas Gleixner Signed-off-by: Adrian Hunter Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20240325064023.2997-11-adrian.hunter@intel.com --- kernel/time/timekeeping.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index 3375f0a..6306133 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -390,7 +390,7 @@ static inline u64 timekeeping_cycles_to_ns(const struct tk_read_base *tkr, u64 c return timekeeping_delta_to_ns(tkr, delta); } -static __always_inline u64 fast_tk_get_delta_ns(struct tk_read_base *tkr) +static __always_inline u64 __timekeeping_get_ns(const struct tk_read_base *tkr) { u64 delta, cycles = tk_clock_read(tkr); @@ -449,7 +449,7 @@ static __always_inline u64 __ktime_get_fast_ns(struct tk_fast *tkf) seq = raw_read_seqcount_latch(&tkf->seq); tkr = tkf->base + (seq & 0x01); now = ktime_to_ns(tkr->base); - now += fast_tk_get_delta_ns(tkr); + now += __timekeeping_get_ns(tkr); } while (raw_read_seqcount_latch_retry(&tkf->seq, seq)); return now; @@ -565,7 +565,7 @@ static __always_inline u64 __ktime_get_real_fast(struct tk_fast *tkf, u64 *mono) tkr = tkf->base + (seq & 0x01); basem = ktime_to_ns(tkr->base); baser = ktime_to_ns(tkr->base_real); - delta = fast_tk_get_delta_ns(tkr); + delta = __timekeeping_get_ns(tkr); } while (raw_read_seqcount_latch_retry(&tkf->seq, seq)); if (mono)