From nobody Thu Mar 20 19:53:58 2025 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 4ZJbqq6kT7z5rJQM; Thu, 20 Mar 2025 19:53:59 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZJbqp5pZLz3Myg; Thu, 20 Mar 2025 19:53:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1742500438; 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=B1yfZnXN/UqVNTNqdnqScANVWWoCfSSXq4TZKNGkeBM=; b=rVwZTb7k5EcrkC/QFXCiaGWFcJY4TQfCb6+HuFCIjUu4e5Czd40V+2NmG9+H9IGX14sOC2 bIQGNyp1voDMIdB0uJAO/Gu5E3pCzJdO9TEgHa/tr+j5j/htAF/zoRHEaajqx2kN4mUpZ0 LqSu+YRh4DBFbGhwzhYoCC33E9ny79asyql4HTmlabqBR2ubtxPTvx/HvJPPpz6ac4dEbg sG4WIc5GJyOEymYJ3Npm4qMsNkpi3fSwJIhh/6aa5uUiPOfYnU21OidkEIwLGfS0FH33FY AoNOJhYd1Dqh/immBneRPK5xVynsQkXH+vVFkLLKfkeCp25Y/lA+gy0qoEgogw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1742500438; a=rsa-sha256; cv=none; b=bDAn1x9xcnWzs1vCKFdsjVqgRAa9xl2sJ82KCdO/c81UVKNtndTcIvmGNpguyvBUS/p5uJ vPm77a9FMfyT4IFrHU0BTMM1UMYiZC5o1KCMqf7y6GKrGW/zkcNMqz7qblks2IBAMaPTiT JLhvS387D2Lk+6A+2HFXlYx7BFbOPf0eNr6JrbtrM6CKEa4tirNoDWz07n2wl2kka+t4tR C8gQVEpnajsT9Z2yxt+SrbR+KszqP5U1NKvnBDFO4OqdGQ+WMqZUrCgEl14f0/rBJsRfa8 a8PvGbHiD7XtPJbAdGWQQAe3AKa7WpxNhXFnjJok5naWo0H+yS7fWxo1cgVuCQ== 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=1742500438; 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=B1yfZnXN/UqVNTNqdnqScANVWWoCfSSXq4TZKNGkeBM=; b=KuNDTKXJL8TYQMG+DPzbrRcIPAiAj9iB7HcZbOOJb4CeZkPUaWJ6efksmRU9TUPJzDahuE MQNVCucoEAOJ83YIGd9dV63YKApUDAPvCSZG0B86JwPJFgZlHlucNUMqs3dVEo3qYuz4D9 aE4eV3210u6fFcf5LPDH/LPsplqpEbkDgcy8fV23wybVnCeDEpZjlmR5DvfCWylf4xRW8a 9/xd8XqTvpkmWDv6abX09H3GDcn31P6F4qzxonNoh22hjl08678rA73DKn8U3+6FHBKDca O8Z5hQsrUKYdmZ6OqTXtLzbkWRi3dp1LIw+hZ0Fjw/nBQhMx6TOjWVusWBGGwA== 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 4ZJbqp58QXz1J1G; Thu, 20 Mar 2025 19:53:58 +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 52KJrw4Q064042; Thu, 20 Mar 2025 19:53:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 52KJrwv2064039; Thu, 20 Mar 2025 19:53:58 GMT (envelope-from git) Date: Thu, 20 Mar 2025 19:53:58 GMT Message-Id: <202503201953.52KJrwv2064039@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Jean-S=C3=A9bastien?= =?utf-8?Q?P=C3=A9dron?= Subject: git: 62f2367e2aac - main - linuxkpi: Add 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: dumbbell X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 62f2367e2aac46194e4f97ff64ab32b82e4b8649 Auto-Submitted: auto-generated The branch main has been updated by dumbbell: URL: https://cgit.FreeBSD.org/src/commit/?id=62f2367e2aac46194e4f97ff64ab32b82e4b8649 commit 62f2367e2aac46194e4f97ff64ab32b82e4b8649 Author: Jean-Sébastien Pédron AuthorDate: 2025-02-28 22:50:54 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2025-03-20 19:43:44 +0000 linuxkpi: Add The amdgpu DRM driver started to use it in Linux 6.8. Reviewed by: emaste Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D49383 --- sys/compat/linuxkpi/common/include/linux/units.h | 40 ++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/units.h b/sys/compat/linuxkpi/common/include/linux/units.h new file mode 100644 index 000000000000..304b5c27d87f --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/units.h @@ -0,0 +1,40 @@ +/*- + * Copyright (c) 2025 The FreeBSD Foundation + * Copyright (c) 2025 Jean-Sébastien Pédron + * + * This software was developed by Jean-Sébastien Pédron under sponsorship + * from the FreeBSD Foundation. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#ifndef _LINUXKPI_LINUX_UNITS_H_ +#define _LINUXKPI_LINUX_UNITS_H_ + +#define NANOHZ_PER_HZ 1000000000UL +#define MICROHZ_PER_HZ 1000000UL +#define MILLIHZ_PER_HZ 1000UL +#define HZ_PER_KHZ 1000UL +#define KHZ_PER_MHZ 1000UL +#define HZ_PER_MHZ 1000000UL + +#endif /* _LINUXKPI_LINUX_UNITS_H_ */