From nobody Sun Mar 24 15:32:00 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 4V2g694Q1Lz5FvZ3; Sun, 24 Mar 2024 15:32: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 4V2g686V12z4B85; Sun, 24 Mar 2024 15:32:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711294320; 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=byG3xIXCdLmMi/HwR6ZuLSKZ2f6SOmVxFRUW7L2cKW0=; b=C4W+mmXWdYhCwwiAhPjuopm+sFrh3FdKm9K1Jmi6MsqfDf5LLUYu/QXgbid81gIlFajuGP p4xcLc4R6zzvkOnD4LEdy7Hcu1AGWlQ1hgATEMe9YfPbziO68dmeWiq4PgxBDYxEqlEw85 6nB1fSuJK2zDoGOdd1Vmnj/ud3OhTTz3VW52cQ1dkNqiGfqBDv2mafGqtxXawYiIP8ldDu 4w3jZcQtZlU/g3frrjExfUr42fXt9F3pb7uOQdp8zzyqZoFgNH7CzYFVYT8rwSMjDZL5gG eOLNrjGj6V5ysZ7AIkvsHjj8iL+RpGasfIt4T7jhcjHQA3OW1ghbACFDEeXxeg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711294320; a=rsa-sha256; cv=none; b=r0mID6/A/eXUnb8d3jWVWhn3tpa6ljNDmWBVgJbPewJ5Dh3bKy0oZj46rJx5C1zOP+4Wrn ES1VV/ZZkhdL681/W7H1Oiy+eVRtDb1HO9MFN4KFLI2oEm6OEsz0ZI8VHkoOmUT1bG3Qtp NFiCZFn4ABWH9cHmqfkdTIf9DP/q3Njn4K0cTpGpO9ySF5GcYtpGWfqwsfAM0sZqbHxjY4 vgUJtE5BJ0bUmwtyCOD/z+rFKuywCmkLxeIF8Y5IKT7Vz1FN5kDbWvdAZqbgeQ7v6Dl05e 8VKEiM47sO1LYlak4Vmo1lGf5yAV2T3+0WK+QOPNHVqfN1fsG6LOGcX8o+lgeA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711294320; 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=byG3xIXCdLmMi/HwR6ZuLSKZ2f6SOmVxFRUW7L2cKW0=; b=ddrbCAVakiyYhsbR5BS4LwVNNKjfcWoYJzHGaLv94084Yhhn/k4BVYvmnSx5toZ6hx06/i ygScPsoOLZp/KDqrlKM97RP0s4PyDSwbaro9e9tVgflmYhg8K7SODlVtGL2dg/ET/HJjx6 6eWF5jUJ+bs5FhyrxUVl/crlr+OGfwCkxs42AU1tgaOvtxg6oD4pNAOPewW3IxOl2Gvbz3 Vb/KP+3r0BcDogpcAjG+Rqcp0oFpq9ZC86SQ0x+/tlOilhVO4Cs8kkw1KT3W0Ep8BIjC3K 5QNr/ieMZdQjDV2wtpo42Hm7A8nAgMsa76cbr5Muy/cvs/GlLxE7Jo9CZ/lj8A== 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 4V2g685Q4BzdHT; Sun, 24 Mar 2024 15:32:00 +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 42OFW0aG007985; Sun, 24 Mar 2024 15:32:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42OFW06M007982; Sun, 24 Mar 2024 15:32:00 GMT (envelope-from git) Date: Sun, 24 Mar 2024 15:32:00 GMT Message-Id: <202403241532.42OFW06M007982@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Zhenlei Huang Subject: git: 579cb41b132f - main - acpi_hpet: Make use of enum for vm_guest to improve readability 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: zlei X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 579cb41b132f532bf4915121c0d0b2f43688242e Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=579cb41b132f532bf4915121c0d0b2f43688242e commit 579cb41b132f532bf4915121c0d0b2f43688242e Author: Zhenlei Huang AuthorDate: 2024-03-24 15:31:22 +0000 Commit: Zhenlei Huang CommitDate: 2024-03-24 15:31:22 +0000 acpi_hpet: Make use of enum for vm_guest to improve readability No functional change intended. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D44402 --- sys/dev/acpica/acpi_hpet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/acpica/acpi_hpet.c b/sys/dev/acpica/acpi_hpet.c index de75e70a2d49..9a1abe6ca72d 100644 --- a/sys/dev/acpica/acpi_hpet.c +++ b/sys/dev/acpica/acpi_hpet.c @@ -643,7 +643,7 @@ hpet_attach(device_t dev) * The only way to use HPET there is to specify IRQs manually * and/or use legacy_route. Legacy_route mode works on both. */ - if (vm_guest) + if (vm_guest != VM_GUEST_NO) sc->allowed_irqs = 0x00000000; /* Let user override. */ resource_int_value(device_get_name(dev), device_get_unit(dev),