From nobody Thu Feb 17 08:43:23 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 5665619D8EC5; Thu, 17 Feb 2022 08:43:24 +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 4JzpJC6f9nz3pXt; Thu, 17 Feb 2022 08:43:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645087404; 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=D+rhRdRKKF7LC3YxgqIjz6fuZvRGW5nE8KJqe651CIQ=; b=egcksr6doX8qRV/ccl/dvovZfYgQM/DO5HrpIF8R683LcgjOvk/DyuDrOzQkASvZyaickq CF8abVmBuRP3yukJjE954d99+jfneUawnPkAMFMM8h38CdhoxlCriTLsm4Q/nGIw34jEPa adaZZATaLikFkl9ma1LfiJFBpq9cmuORegPh7YrfgKtbgVC87OvQxMVCcafaYYuA5NUg3B A3DEZXxl9y80hhje7bvY9oabhMPezdOOkh1C2KzvAdJ/lZ4G6dmC49V3Wz9wk4cyM1ZsUk LcQ6h200vOvQeS+cuRwROF24hydkdpaVzFfBbeOLqJG4j80X0/p69/3WLpar8w== 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 BDA8B26C8C; Thu, 17 Feb 2022 08:43:23 +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 21H8hNEp045215; Thu, 17 Feb 2022 08:43:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21H8hNVo045214; Thu, 17 Feb 2022 08:43:23 GMT (envelope-from git) Date: Thu, 17 Feb 2022 08:43:23 GMT Message-Id: <202202170843.21H8hNVo045214@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: 8021ba67231d - main - linuxkpi: Add orderly_poweroff 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: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8021ba67231de90f17a951497474ab017b7dab9e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645087404; 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=D+rhRdRKKF7LC3YxgqIjz6fuZvRGW5nE8KJqe651CIQ=; b=tyDchBNGCsnza7v5YUbcyXDc1vXbCp+qkBvNn9oeGRQU7VKR742I7n4qn8rhRpouKY9TNJ g86sEiVam2aE+U++71NQnk+7mwwFdJtDWqBgvkIQlIKYFWNf3i1VHvrWG8Sv4ZIFbwH981 kJ5PRB2q2fHRlBThw5uinVzetjWlAYwJrtGHAtei/PKyqWp4R4jF/6vy15hjlbx//Tjgu2 /RjqY8ns68z4BbRUNgmr9wbsUTGGQzTBWUmuZzazo4geVCHAv/xoPRzBydsqeX/jqTx6sZ Ah/whbB5po8q36OcshXkwu/o0sD+5DtiphLzJ0q17xbfBwBjyH5WTQ7lBDcY9A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645087404; a=rsa-sha256; cv=none; b=wSgbq4y3cvOO+t4C2HrclPcdNJ6GEAMaLY2oI5q4gfIQTysdeYCOTlOVXXQdYJd+cDx7+w euGeSMZDMaPqY2LBaJcauAK0Dzo0u4l3cbDLhANRt/gNOBkpr7zyrOX6NudkO+Vp4xi+Jm KArACI4nIHKRRIVyMY93nw+0ANpSxw01uLHUiA4Fly/ZAego+CegYqyxKevknpDq1WHx4/ SmWx4hPGb08Bw+HCDKokE4PeOQ+kFYSEBF4ZubWudPrARz8yJgYU17vOncCWNAIOFvsqr6 EwwSA8BWxEkURuBtR2gBzgSLSL/W02+qh/E4D8dNzmbd0pPxkIvY8TKLqopjQw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=8021ba67231de90f17a951497474ab017b7dab9e commit 8021ba67231de90f17a951497474ab017b7dab9e Author: Emmanuel Vadot AuthorDate: 2022-02-15 11:06:26 +0000 Commit: Emmanuel Vadot CommitDate: 2022-02-17 08:31:25 +0000 linuxkpi: Add orderly_poweroff This simply poweroff the system. Needed by drm-kmod v5.8 Reviewed by: bz MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D34287 --- sys/compat/linuxkpi/common/include/linux/reboot.h | 40 +++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/reboot.h b/sys/compat/linuxkpi/common/include/linux/reboot.h new file mode 100644 index 000000000000..eb696d7b9d2e --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/reboot.h @@ -0,0 +1,40 @@ +/*- + * Copyright (c) 2022 Beckhoff Automation GmbH & Co. KG + * + * 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_REBOOT_H_ +#define _LINUXKPI_LINUX_REBOOT_H_ + +#include + +static inline void +orderly_poweroff(bool force) +{ + + shutdown_nice(RB_POWEROFF); +} + +#endif +