From nobody Thu May 15 09:53:02 2025 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Zylrb2CMgz5w40p; Thu, 15 May 2025 09:53:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZylrZ658fz49rX; Thu, 15 May 2025 09:53:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1747302783; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UnsFtN3CcocDJF9Kxq7hJJwttGPaVY+o4xG7c6lQR9c=; b=KMSTo1X2R4ADpMqlrRxkyAtWhAMJ8OgY3SndXOJOgNQ1/gIqnqN4YWw2hNGIA476fg1PDB v2ZgHOTGJXdx5qYyn1TBUdj4wQsJijJIB+ADAjRCoDtjB/YnZcA7Uutahb8rpopHE/m4hQ DlMtAgZi768hJ65NeL0p5t668Ou1JbOinYgucJRutbdf7yIT0VK9Qpzgf/xUWTdghMy84g zi84wyJPRwdaZXPgpCCwt7lsIux5V8G7H3pImmZE/E6PBYbiS4ekf19L5/MtWEuiNut1cz E6tQmubsQKGy2HcApss0mJq9tDXaA0Co1z5WMVtKg3MWwQm7WT9cgnXNJ8zABA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1747302783; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UnsFtN3CcocDJF9Kxq7hJJwttGPaVY+o4xG7c6lQR9c=; b=vNnj5qSTMS2G5vPL650AluWZ6mCCGZm8j09wJr3caPyFq3WTso4MV7mAKa/L1127K/F1nl dOJF5X/TLbBSpaidqfj0A9UJFcazL7T275fxeD2icYGlSmT6NPt3I8JDxbiK/g6tPsBs+y KfK6PZuBK/odiwSY3NGSdfhZaqyy6VZnnBGV1A/TtDUTM2qjRAb6X1j0B24wJE8l4BeaPA 0hjASDR6ogNTydESNmQDSOLP1BRT/2m8SyIO8nHXBE1djDVFAu/N5JSXQrMn/yqN+ji7/J cQZArwIy1HT5tIh/I8XU5UWJupqeNnYvuLA81Y/ewJhQs0POcWr0bKid1HDraA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1747302783; a=rsa-sha256; cv=none; b=ZBJrZjwq+71tpvxAJ19guV2OV7FsufqFLN0xu0hOXlgmiQSefw9I3IVSWTUflnc8qykIMQ XKSnNBtHeJB+BmxxmxQk+MTEtMvTgCW8aTTMazAX/YOaGMJ868fXrITbQBPajQ9tXhy8g4 p5C97QCSSNnyxqa5CuhzjUwhNGVq7F34Xd1FwpAOKKK71J0cn6dFcetRfN4qHTaLNSRG2T N05JFEiSRwjMqNACmnLPAXG0iwn6RES3dLOmWOE2BiiQKeg6JYqSrgIOFyA9jVoOs1Ti5m 4TeCVd5hqrohscWWuJmLhZDt4NDzIOkeDtKaKyGKoGzJxMe1+RlZVuMaLx0sIw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ZylrZ5Z7kz1BmZ; Thu, 15 May 2025 09:53:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 54F9r28k050864; Thu, 15 May 2025 09:53:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 54F9r2kC050861; Thu, 15 May 2025 09:53:02 GMT (envelope-from git) Date: Thu, 15 May 2025 09:53:02 GMT Message-Id: <202505150953.54F9r2kC050861@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 1d70da6aa294 - stable/14 - LinuxKPI: add ktime_get_boottime_seconds() List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 1d70da6aa294b9b3c0963e41667a4f74b3125615 Auto-Submitted: auto-generated The branch stable/14 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=1d70da6aa294b9b3c0963e41667a4f74b3125615 commit 1d70da6aa294b9b3c0963e41667a4f74b3125615 Author: Bjoern A. Zeeb AuthorDate: 2025-04-24 11:12:54 +0000 Commit: Bjoern A. Zeeb CommitDate: 2025-05-15 09:50:56 +0000 LinuxKPI: add ktime_get_boottime_seconds() ktime_get_boottime_seconds() is needed by an updated iwlwifi driver. Sposored by: The FreeBSD Foundation Reviewed by: dumbbell Differential Revision: https://reviews.freebsd.org/D50005 (cherry picked from commit 93b82146c43b8ecad4fd7694ec1daf6d79cca65c) --- sys/compat/linuxkpi/common/include/linux/ktime.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/ktime.h b/sys/compat/linuxkpi/common/include/linux/ktime.h index 53c2abd64fc6..6a2f04f3d789 100644 --- a/sys/compat/linuxkpi/common/include/linux/ktime.h +++ b/sys/compat/linuxkpi/common/include/linux/ktime.h @@ -232,6 +232,13 @@ ktime_get_boottime_ns(void) return (ktime_to_ns(ktime_get_boottime())); } +static inline uint64_t +ktime_get_boottime_seconds(void) +{ + + return (ktime_divns(ktime_get_boottime(), NSEC_PER_SEC)); +} + static inline ktime_t ktime_get_real(void) {