From nobody Wed Sep 07 15:09:56 2022 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 4MN5K10DWlz4bPCj; Wed, 7 Sep 2022 15:09:57 +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 4MN5K06mvjz3X8C; Wed, 7 Sep 2022 15:09:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662563397; 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=lNAe36qmzLCldgFYBHai9QGaXu/PmdSmAoUGH2cX7I0=; b=iwPYijL3RLv4s2KYlBhxPpzbkS7u91gMAaBCXtf6EAoYQpEQjtgjPIuRNdQCx7s7gW0Y4m lykibey0Xw4iY7swlS9wglWx6qR2OLB911zW+az3VVrC8KXN+Wrctb/XsA6vjsm2LX1qLR 1v+xQ7EpPZtHNo1KuYRsxg0QWKeEhMPcwS6A1EtNLB+Cq83rzhWtJu0mLwJGnHUhmB1PyV ZHwP762ngo1MLqijRNeX6kuXdIpEnpsIX28hTjDkL0gklmOrmSSJes0VdpQJlRf0Umolwu 9qX3y3Kc09xE2s8LEtt6gZ7rDFB8PlJeRgbIQwQDLr8m8ek8rRJwVMYi0j7B1Q== 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 4MN5K05r7dzZ8j; Wed, 7 Sep 2022 15:09:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 287F9uvk017242; Wed, 7 Sep 2022 15:09:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 287F9uhu017241; Wed, 7 Sep 2022 15:09:56 GMT (envelope-from git) Date: Wed, 7 Sep 2022 15:09:56 GMT Message-Id: <202209071509.287F9uhu017241@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Emmanuel Vadot Subject: git: 01af6b95d118 - stable/13 - linuxkpi: Add pm_runtime.h 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 01af6b95d118b78ff17db4ebb706be5896398f5c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662563397; 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=lNAe36qmzLCldgFYBHai9QGaXu/PmdSmAoUGH2cX7I0=; b=QVko7MykOgnv1X9R0+2jubUJZAB468Aa8iUTwFCX7P7bzyfQH6ZALrvADRIyXM1MUO3qBm zk4SOqtYBnWhsxHqAEV/Yj+Ojs9d8RzqyIcC+TCPKt4pMnu2VpoaYGscGTGtLtSyLYwWkD S9O22I+vSqMq//RwA+6v8OK51e7k657unGF0HwS27+swvRieqdcAA2ZOcEaaEIsgArYBvD 4Q+2LVc6VwE9/2ptKORuGIgLKrPUwluIbDLDaGjYM80ZKTC8je4664+J5Wbte8xPzT99nv +CRuZxgRiCf2TvB37UXGOQZ7UbDbJSGyNJlXY0sUAva2oEGSEX/09R6N3eVJyQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662563397; a=rsa-sha256; cv=none; b=Wfj9TJ4BRGeAE5LyA89bBtQjxvhd2M0FGTCficeBLeiZ1te6JvNMqFJCvY7wzuqWezXSEx zTG/8ee0lL3EtaaQIK9jB3u3EpPyVn0g8amsKwNIE0gx486ZlbUzmhyZSmCC+uFuD65hiA KnHG0iM5DcueMK65CZg4ZyK0uCNLmuHPRP7kAJea4yWffNpEpkg6Gh4ew7esLiu+PVBfKp OqLbpkIw6Prap8QM4NdPBvAPrzVyreVy/QuU1rE12VIXn+OofxR8dL7uW5DYfDYMh2OCuS i4u5v2Kdw8vBZfaxzys1njgwz2aTiv96Vu9amoAW7zK8O5SqBc0DeX935D2zqg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=01af6b95d118b78ff17db4ebb706be5896398f5c commit 01af6b95d118b78ff17db4ebb706be5896398f5c Author: Emmanuel Vadot AuthorDate: 2022-06-23 07:59:11 +0000 Commit: Emmanuel Vadot CommitDate: 2022-09-07 15:09:02 +0000 linuxkpi: Add pm_runtime.h Provide dummy functions needed for drm-kmod. Obtain from: OpenBSD (via drm-kmod) MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D35568 (cherry picked from commit 456a92d5d38b498340c2ce5a0c40c84063948c33) --- .../linuxkpi/common/include/linux/pm_runtime.h | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/pm_runtime.h b/sys/compat/linuxkpi/common/include/linux/pm_runtime.h new file mode 100644 index 000000000000..42c96a92b1ad --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/pm_runtime.h @@ -0,0 +1,43 @@ +/* Public domain. */ + +#ifndef _LINUXKPI_LINUX_PM_RUNTIME_H_ +#define _LINUXKPI_LINUX_PM_RUNTIME_H_ + +#include +#include + +#define pm_runtime_mark_last_busy(x) (void)(x) +#define pm_runtime_use_autosuspend(x) (void)(x) +#define pm_runtime_dont_use_autosuspend(x) (void)(x) +#define pm_runtime_put_autosuspend(x) (void)(x) +#define pm_runtime_set_autosuspend_delay(x, y) (void)(x); (void)(y) +#define pm_runtime_set_active(x) (void)(x) +#define pm_runtime_allow(x) (void)(x) +#define pm_runtime_put_noidle(x) (void)(x) +#define pm_runtime_forbid(x) (void)(x) +#define pm_runtime_get_noresume(x) (void)(x) +#define pm_runtime_put(x) (void)(x) +#define pm_runtime_enable(x) (void)(x) +#define pm_runtime_disable(x) (void)(x) +#define pm_runtime_autosuspend(x) (void)(x) +#define pm_runtime_resume(x) (void)(x) + +static inline int +pm_runtime_get_sync(struct device *dev) +{ + return 0; +} + +static inline int +pm_runtime_get_if_in_use(struct device *dev) +{ + return 1; +} + +static inline int +pm_runtime_get_if_active(struct device *dev, bool x) +{ + return 1; +} + +#endif /* _LINUXKPI_LINUX_PM_RUNTIME_H_ */