From nobody Sun Jan 28 13:14:01 2024 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 4TNBhn4J7Qz58YxN; Sun, 28 Jan 2024 13:14:01 +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 4TNBhn3p7Pz4ybL; Sun, 28 Jan 2024 13:14:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706447641; 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=LiSoJDSkJVtrbpEU2K+i3S5qaIwSq7ClYuJAy9xrqpE=; b=sW/qIdyVlUH9W9izl1KkW+Zc6MlAqlzipFwKqQTe6Oy7m6vzH8FoyHodD2TFu6WqOAJmzz N+WodiUGsPjOPzM1Q7B/Pu3Ov3wsZfgCiNOWITxqQxTX9PJefqcBw1FqGRiHSLeVXBV59L 5yuJ63S8NxoOJN5iyPhV8VkjcfWLvRqsjio849/Y6bGrI4XIx4DAXevS8j6OoWK7PMrzDL sBaKCRrWuAkFz2yGtRQ4FyEEZG0SCORRV49/NMJpotSjWT+vzz8RBBHq7ymVk8pMa17cny oM11jnOfx+G5XLlMDtEMutihM2RoMI0LIvyl5bqIQqjGwuujQWfH4fvCAFtuhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706447641; 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=LiSoJDSkJVtrbpEU2K+i3S5qaIwSq7ClYuJAy9xrqpE=; b=YSvvKb8FgMv9bNy7Il/L3h8BiO8+T/DxdMILirFdmRRqqLEg8gPgT9Xi8Q5W+PPcAc4qvf VvWyvjojnA+KXPAX4RH6cDH/lwqodPM+XiiYmIPDHY4uc1Acmugujb9cqG1lXf1DgWbqZx Nbq1IoCri6qHTwA42jtYSMskaxfYJhnsHsPLSLfipUdkAsG31rruZfCqF7mpvE0dHG5w0T CVtNP24EvHKvbe3lOGgqYLWkr9VVX3c2mTs8/+Fwy8kBLHowtGSmG4eEm9OK+yullsS5ko 206ZMbwZRmNOsPT4sSlFW45ngSUEz3EMoCsOOanYOdul8mDWfn6gaWdbWpGCqw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706447641; a=rsa-sha256; cv=none; b=iyIhR/80N3XVeGN+JwPHrOo802wsv+RIPrHbdWX2uDScC80my1/s3Wka8rP92g+ybs/YSf j3OqrMY9Ee+MyybJswggCLUoa5a+2qvODIAXKIO1LkS1daMghLL3nqjb4NbW++T7n9W9XN pC3Ivh062nWRKs0mckezOyOIntapdkgmiub9GX1sfBPFWuXq/zB5YAQVpZ7Goq2IUoBcNL zV1jbg9ds6jKlqaPtfKEGvNCXp3AekFaVt3IX8ghkDjtOKWGffSku8CFFA8EkPVeqy54a8 gxYAJfNxB1SwDMULJoJ2T9TDUOUavB9w8h13mTCxWBjzQyJ2RUVDljNaqklHaA== 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 4TNBhn2vGDz18RM; Sun, 28 Jan 2024 13:14:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40SDE1Ev039743; Sun, 28 Jan 2024 13:14:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40SDE19b039740; Sun, 28 Jan 2024 13:14:01 GMT (envelope-from git) Date: Sun, 28 Jan 2024 13:14:01 GMT Message-Id: <202401281314.40SDE19b039740@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andriy Gapon Subject: git: 9cdf326b4fae - main - run acpi_shutdown_final later to give other handlers a chance 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: avg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9cdf326b4faef97f0d3314b5dd693308ac494d48 Auto-Submitted: auto-generated The branch main has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=9cdf326b4faef97f0d3314b5dd693308ac494d48 commit 9cdf326b4faef97f0d3314b5dd693308ac494d48 Author: Andriy Gapon AuthorDate: 2021-12-20 11:01:56 +0000 Commit: Andriy Gapon CommitDate: 2024-01-28 13:04:55 +0000 run acpi_shutdown_final later to give other handlers a chance For example, shutdown_panic wants to produce some output and maybe take some input before a system is actually reset. The change should only make difference for the case of system reset (reboot), poweroff and halt should not be affected. The change makes difference only if hw.acpi.handle_reboot is set. It used to default to zero until r213755 / ac731af5670c7. --- sys/dev/acpica/acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index 9196c446ae80..7d1fc10afb9e 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -675,7 +675,7 @@ acpi_attach(device_t dev) /* Register our shutdown handler. */ EVENTHANDLER_REGISTER(shutdown_final, acpi_shutdown_final, sc, - SHUTDOWN_PRI_LAST); + SHUTDOWN_PRI_LAST + 150); /* * Register our acpi event handlers.