From nobody Mon Apr 08 06:49:06 2024 X-Original-To: dev-commits-src-main@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 4VCfnv26W3z5GKw7; Mon, 8 Apr 2024 06:49:07 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VCfnv08zSz4mH7; Mon, 8 Apr 2024 06:49:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712558947; 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=4Yp59Lfecxq1OZWZ0bEHBIxBeG/lJdZ3VXqJHNgiawo=; b=AsdRBpTneTmGBKodIOr+dR/cXbUw7WpujETm95j4lf292Ceb+PeFTWiO+LQn8Z98Eo3uBI SK8autqXSnTQMX3Z+9tJtThDoqXMO4RcikdbSnKWL9tzOsGwTptc7+aJuQGaIFeUZAiaPh Beey+QppGElyzw//UrrKkNJu0+KvJtdVGOuaff4O4/K26pWVSgkwjvm+EWtd+M3rnMIBIe 5imJ/i2yS82Rq5H1Gdyfmn47LLfBU6w5knD2iXqTlfxtfsLSloaqIXlf0Q8XTR0RcebcvS Wd00lQWRM46VOhgI90Hz+yGoM6ccnDOqF8WnHeGfvQjpohx7NiisacDMF8xb1w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712558947; a=rsa-sha256; cv=none; b=udlu812skPiERRaAwvvr2x02g4Xzk8iunSMuvN34RtxlCSHq8l27uoPKzr/bKIQzOVctI+ swaZ/zO9ihpmCZtAAgl/IsB1E9XZyv9EAbGuWUawqGWlg46SoIeohaetdIrh+M7wBsVATm g/ITMDaXOGNISFjBe0M3/8K6tX6HtPYHNX3gFkR6QyDy3LJJfB/dasmqVFG7Fcb+jDGnJF Xl74vUwgORCeamwAlRmXZFLXgDHVTqmhfkaLDscMg1v3jVKsHsgr31MpX0Yj4xD0RFyMEq fmyNmXQ703Wy0BRSYBNP2PBQYmzdEzfuo1uSva7o4uOixxNZE3rF5zDY258bcQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712558947; 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=4Yp59Lfecxq1OZWZ0bEHBIxBeG/lJdZ3VXqJHNgiawo=; b=KCjO3V7RzXCjjSq2LC0iIEHJ2p0r+PRE+eUaqSJ/fujRszeeLM7A+xnUewxlRxn1Z8MYqI K2iV4YoxmKaXvKf6gB5+j+i9EC7WdAVGIVaTcucoPsPGlqgDQ5uh+7he8GOx6W95rfFQqO FW8AwiB1TiMZcARCCuKo7OgB0YS3EnQ8c1tcXtNYmNLWGla2ecOCAh4IipY2xA6HZQYCY0 ocOyY1zZ7P6dfUlZckky4ujl3WJ7dXltlXmApFFpwC3F5KK94crlDbzd9iqdx7/ckJOwTV jp6bHozDXGEhbiFjtxKEHSY4TkOeltSZxP1MOdX2sDRpJBIgFYUTY9b9oTtNKA== 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 4VCfnt6t84z11kY; Mon, 8 Apr 2024 06:49:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 4386n6JK032578; Mon, 8 Apr 2024 06:49:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4386n6IX032575; Mon, 8 Apr 2024 06:49:06 GMT (envelope-from git) Date: Mon, 8 Apr 2024 06:49:06 GMT Message-Id: <202404080649.4386n6IX032575@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vladimir Kondratyev Subject: git: aafe4126f794 - main - LinuxKPI: Add ms_to_ktime List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wulf X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: aafe4126f7942daef5b7d522bd4fafc5deddb0bf Auto-Submitted: auto-generated The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=aafe4126f7942daef5b7d522bd4fafc5deddb0bf commit aafe4126f7942daef5b7d522bd4fafc5deddb0bf Author: Vladimir Kondratyev AuthorDate: 2024-04-08 06:47:42 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-04-08 06:47:42 +0000 LinuxKPI: Add ms_to_ktime Sponsored by: Serenity CyberSecurity, LLC Reviewed by: emaste MFC after: 1 week --- sys/compat/linuxkpi/common/include/linux/ktime.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/ktime.h b/sys/compat/linuxkpi/common/include/linux/ktime.h index b13c7182bc61..53c2abd64fc6 100644 --- a/sys/compat/linuxkpi/common/include/linux/ktime.h +++ b/sys/compat/linuxkpi/common/include/linux/ktime.h @@ -69,6 +69,12 @@ ktime_to_ms(ktime_t kt) return (ktime_divns(kt, NSEC_PER_MSEC)); } +static inline ktime_t +ms_to_ktime(uint64_t ms) +{ + return (ms * NSEC_PER_MSEC); +} + static inline struct timeval ktime_to_timeval(ktime_t kt) {