From nobody Sun Feb 20 18:15:34 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 F2A9119CEA45; Sun, 20 Feb 2022 18:15:35 +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 4K1ts25B0gz4XjL; Sun, 20 Feb 2022 18:15:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645380935; 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=VETB5dAViw1eZ8EKSaOyjFAdx3+d/GiH1Mx+LkiSlhI=; b=FIZA3AD1D+Zdqa16Ajms85K0/p28WvHaHpdziye3GEpKbOKtiLGALLoLbsU8XplMmkAKZ7 Kppa0ntGo7rHk+gbp2+OnWlGkexjmfQaOwRTSbuhKRYT3SKSM2OUWeGzZb70l3vFMW9S14 0WqO9ZRt+Yb8AddjaX2uXhxM7Iqy559HSiCj9gtSC1oLpBJmk+v2TJsJLio+9j9zwiJ5f5 pvzBGx6JXjIaAzBsznz0aR8iH4rpylbAy9HVIpyKIPChAJ7hzRNmW/SDt4XnT8Z7v4ym/J 1AYb8TbeagXXHqTdE9xoaFpVKk6qyPkkxfou0Ee8jrzymxhh3h2DsQM/l52v+w== 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 265BD20DF7; Sun, 20 Feb 2022 18:15:34 +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 21KIFY2B022850; Sun, 20 Feb 2022 18:15:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21KIFYpa022849; Sun, 20 Feb 2022 18:15:34 GMT (envelope-from git) Date: Sun, 20 Feb 2022 18:15:34 GMT Message-Id: <202202201815.21KIFYpa022849@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: bc194dc41d8e - stable/13 - LinuxKPI: add linux/pm_qos.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: bz X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: bc194dc41d8ed8ba65cb80461f97c470388c41f4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645380935; 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=VETB5dAViw1eZ8EKSaOyjFAdx3+d/GiH1Mx+LkiSlhI=; b=biv4EJaGd1qRRy/HK0OK3sEEBsv2y22Ls0H7MjygNzgphADZqKDwe2nP3oZ2oKGdKLfTlN N+vSPFBgZlRsxzkYfDCqrcI31u3fstO9YCSj242FHxQIT9J7GHQgnMtrKPbeFY45/E4hso /v/5MUv2C9P6A6tMPCmFhe1PfNFqFw+egh57Dj+GeEU1YraQdsFHZRdj/OZiMhlR1oM2of ADHUGT+46ZOp9uNSzZ4jaCt953t2md4d8OkblnZJBj4GL0Q1GoGJKEOCzf927qR3+BC/RT DUwrhvTn3v9dojApBVFY+QdtCrUQmpBY6tF0RyKbVZow8E1CNT8gnEBmfVtuUw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645380935; a=rsa-sha256; cv=none; b=h+KLxFr2RoTEzPExexe9xRzWsi7CwoJPC0gu1b460khhSanT8JvxQGoy9Ai8MM/WT51Loy yjPfmPec+azscHGgkOxYbsx33d6YlNPX6a2CcnICq+bvuRkA7l9nZheizUgVMOGKuvGhPN CE0GcJlUKouDgrK8h85WoiiY2F10BUJYSzAH/FbcuU9BzZhr/pTpKZgcTp0RtRpUgSCjyB e2U2IMsvXXkrLc6kUqwBsI+VBl4+QOxclOoW4/9D/6xWCm960QiqDcVeuIXx7pFhRR0WWx gHwCFEJEy/hdL/RRWMnKCcgsPh4iN+1hIypG4IIWRjqhQiwpxxS9NVpSEV3Cqg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=bc194dc41d8ed8ba65cb80461f97c470388c41f4 commit bc194dc41d8ed8ba65cb80461f97c470388c41f4 Author: Bjoern A. Zeeb AuthorDate: 2022-02-09 12:07:44 +0000 Commit: Bjoern A. Zeeb CommitDate: 2022-02-20 16:23:32 +0000 LinuxKPI: add linux/pm_qos.h Add a linux/pm_qos.h with three dummy functions and a struct as needed by a driver and drm-kmod [1] in main with no intend to support this for the moment. Submitted by: wulf (drm-kmod bits) [1] Sponsored by: The FreeBSD Foundation (drm-kmod requested updates) Reviewed by: hselasky (earlier version), wulf Differential Revision: https://reviews.freebsd.org/D34234 (cherry picked from commit fa6d3522b56d482e77740e325b59019e2ffc347e) --- sys/compat/linuxkpi/common/include/linux/pm_qos.h | 53 +++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/pm_qos.h b/sys/compat/linuxkpi/common/include/linux/pm_qos.h new file mode 100644 index 000000000000..6b9d48c5be6e --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/pm_qos.h @@ -0,0 +1,53 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause + * + * Copyright (c) 2022 Bjoern A. Zeeb + * + * 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. + * + * $FreeBSD$ + */ + +#ifndef _LINUXKPI_LINUX_PM_QOS_H +#define _LINUXKPI_LINUX_PM_QOS_H + +#define PM_QOS_DEFAULT_VALUE (-1) + +struct pm_qos_request { +}; + +static inline void +cpu_latency_qos_add_request(struct pm_qos_request *qos, int x) +{ +} + +static inline void +cpu_latency_qos_update_request(struct pm_qos_request *qos, int x) +{ +} + +static inline void +cpu_latency_qos_remove_request(struct pm_qos_request *qos) +{ +} + +#endif /* _LINUXKPI_LINUX_PM_QOS_H */