From nobody Thu Aug 01 22:27:17 2024 X-Original-To: dev-commits-src-all@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 4WZk9K632cz5RZP2; Thu, 01 Aug 2024 22:27:17 +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 4WZk9K5Ryjz4YRW; Thu, 1 Aug 2024 22:27:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722551237; 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=vEhQ8M/VVVATLh2DXY8UERgCU3BS3vCRSM+dpZEhOT4=; b=JDi+viH/6Qv0xRr1oVZnqM/ifBWXbdhhxjygC4wST8X8aBljg6qN3/p3urhoFIfrnn577Z 4ANsQ5QyxRRZGmh+AzSRIl+UKsgzPF77y1W10GukW8EWlcXtVYVkOIpYA/rkGnAuBL58fb N+GtQ5DeIDbYC/w0aZWkegRxgr4ZCMo9KoY3L08PoeRX3V4SeWSAuPEVRpi6NkCgDo+kyP G28GA/Qyi1EtR5C1m/uRiycddewEUpSeLv2ImFI0lYptl/2A7Zimsc/C9+88Ss5b3zI6TF FqRqI3iO9EdzWsD2qbl92CnzjSTM3gtWst/XyCHR8G/KWx0b0s+50TLI7U28EA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722551237; a=rsa-sha256; cv=none; b=sTMTDtlgDCZMa2jwMTPGXD5Jhw0euUFpqrOwcmjaJ8AuNHIiHA5k+JapI85fsX55kPR3JC imqoGVUa0Gc/WSlxSvOT4hx8scnjIlCgnAqUAZ1FHp6kv2ZT46xYB0VBl+elN30Z7v1m4n 5YY0LLhsKxXgTLTk21Qhbcjq0jyNYEeXNyGToOzGz7VOcIb9chDwxAd8uEzwLhg02zIMpa eGYKNDqNHPRFJ25Sl/zYgaA7otpfqLCseZ61EW0T0vtm9m6sHURZRjt5BWdQ9oSSlihLPU O3EXtDTvzzIw+lq0hkTGTJlV+rMjJopd0fX7j97t6ZtUibLfpmwyIC8PagB0IA== 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=1722551237; 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=vEhQ8M/VVVATLh2DXY8UERgCU3BS3vCRSM+dpZEhOT4=; b=eJVx8+NgBlkxM3qBslmvJyk8ok4JAhqpKgq5k2UuIYaaCe4oJ4zKvyeQu1gWI+ROuKvV0g Ku5UjGySRQ+nk5N9dkzz//7FKnX+8x6DoPPw3H/yIAq/xNgOYYpkKEi1sYWhxKeRedC7+X miJBONM/E3ETtgeQqTHT8wW+far1hx2ieEy2L7QlYinh/XQoW2YDXpMDifCZd7qLeaeIEm 6espapO00WV4zANlweKsP7wShh9ghFohMV0mFsjmlFlhtZXh4idRxr1mr+sNFsDkFPLQmi 0bUkjgqgAnFZ31+v/MTZB7rELwwkY0maR7nglwfuCky8Wkklxs0H6TJp6EqDtA== 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 4WZk9K53HNz12l6; Thu, 1 Aug 2024 22:27:17 +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 471MRH7b026713; Thu, 1 Aug 2024 22:27:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 471MRHXg026710; Thu, 1 Aug 2024 22:27:17 GMT (envelope-from git) Date: Thu, 1 Aug 2024 22:27:17 GMT Message-Id: <202408012227.471MRHXg026710@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vladimir Kondratyev Subject: git: 9c67525fc362 - stable/14 - LinuxKPI: Add ms_to_ktime List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/stable/14 X-Git-Reftype: branch X-Git-Commit: 9c67525fc36260e5ada6902a96c81bb36805e395 Auto-Submitted: auto-generated The branch stable/14 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=9c67525fc36260e5ada6902a96c81bb36805e395 commit 9c67525fc36260e5ada6902a96c81bb36805e395 Author: Vladimir Kondratyev AuthorDate: 2024-04-08 06:47:42 +0000 Commit: Vladimir Kondratyev CommitDate: 2024-08-01 21:09:37 +0000 LinuxKPI: Add ms_to_ktime Sponsored by: Serenity CyberSecurity, LLC Reviewed by: emaste MFC after: 1 week (cherry picked from commit aafe4126f7942daef5b7d522bd4fafc5deddb0bf) --- 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) {