From nobody Mon Feb 14 23:54:21 2022 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 7DDF0194A9D1; Mon, 14 Feb 2022 23:54:21 +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 4JyLfj35y5z3h3j; Mon, 14 Feb 2022 23:54:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644882861; 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=9hXt/zrgpCTSCokIlmYC+kTAm4vwq2mcI2R3/+vfEJ4=; b=HJWY7vi8yAmo05aBHfXJbKooxa6bV11ch/xj+fOMgCS6+OHSCbYI4tALw0W1S04Lb/uaVy 59/DFCVtGsDCnLRnIWBRx7X/CD3AovtwU2J1Bp98Y+kF/aZqK874ueCRa/E8zDeg0RcoNy s6JFUQHPL4udseyAVH9gXR9C6qoY3NwNnZ4TyzOa1KCVBzcTJPKXMrnZdX5kiIuUMTz4xk d7mwrzH2FrYbImUXwJZAzMtVVSmIaMn58+LkH6J0gBLScaMQpylVXCYzKVyc9S8bZesewW 8seoA2FeEyiQgJstN1ib4TcfJWf3KoUYx/194iCMMBeOoWDo8rjTnu60tTzjdQ== 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 4A75E18329; Mon, 14 Feb 2022 23:54:21 +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 21ENsL00072169; Mon, 14 Feb 2022 23:54:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21ENsLed072168; Mon, 14 Feb 2022 23:54:21 GMT (envelope-from git) Date: Mon, 14 Feb 2022 23:54:21 GMT Message-Id: <202202142354.21ENsLed072168@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: fa6d3522b56d - main - LinuxKPI: add linux/pm_qos.h 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: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fa6d3522b56d482e77740e325b59019e2ffc347e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644882861; 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=9hXt/zrgpCTSCokIlmYC+kTAm4vwq2mcI2R3/+vfEJ4=; b=o728aaAmO+qvcaFk+EXrmeeHFK5DBauQaKSg0XDUqfwjvBuAbfkb/d0CHFX/BpdCNJ/mfT uAqztk6KQWMfvSpuVVLMNLhH1lo8OM8toRqRSPe8P+dhHBnfw68uE1IJ3zMjB4H2g+dTYe fujOX4hN8m12PcIb61riw0YMMa2NhLZ4UPr+dm/lOuD+hI5d62BxHQVU6Nlr4YvUZdptI0 /jKo/WfRLHKiSrG/zOKdZSKNVHg3u85b5hbvUEtKRC5tUhgHw1YYW+nVxd8dD8gRGTl8Yz hISrtLOqvRUZl6zkjlEZailf2HCmg9yp5ZIXpNRxSVNAsUrn43rpfp0y/APZQw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644882861; a=rsa-sha256; cv=none; b=rjKOtrDAhBF6H4X1egjk26LADY19Sz38JZz5a02Cz0Bl7cJrc39yYYS9Y1BaKMSIYlX9e7 vTO4MXIaCHWORZQ2rWzwxw35zK45U+Db//8n9VhpHKyxRvNXY7igjAra9xqY/n06DfjLTI 35VX40fHWnfi6Dsw8HYtacZQnHTnk9y9Fs7Q96X+l7soO/3Fnd2W/qu7pQ+gfMSTzFe8hN j05a7NTd9vPBEiChlm79U8wu04liRFrDFiK7DaJe1GxqOmzsgRGHMDy0a1wQBLydbWhrEy eGySRkLmqsQc5Y93YleFd/ZcUltioGPL4cviyM7nrEMup+o04Rm9jvCEfcxiSw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=fa6d3522b56d482e77740e325b59019e2ffc347e commit fa6d3522b56d482e77740e325b59019e2ffc347e Author: Bjoern A. Zeeb AuthorDate: 2022-02-09 12:07:44 +0000 Commit: Bjoern A. Zeeb CommitDate: 2022-02-14 23:53:17 +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] 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) MFC after: 3 days Reviewed by: hselasky (earlier version), wulf Differential Revision: https://reviews.freebsd.org/D34234 --- 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 */