Module Name: src Committed By: jmcneill Date: Mon Dec 30 19:07:31 UTC 2024
Modified Files: src/sys/dev/acpi: acpi_util.c Log Message: acpi_match_cpu_info: Skip test for 'acpi_active'. This allows us to call this function from acpi_md_callback, which is when CPUs are attached on Arm. To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/sys/dev/acpi/acpi_util.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/acpi/acpi_util.c diff -u src/sys/dev/acpi/acpi_util.c:1.33 src/sys/dev/acpi/acpi_util.c:1.34 --- src/sys/dev/acpi/acpi_util.c:1.33 Sat Jul 23 03:08:17 2022 +++ src/sys/dev/acpi/acpi_util.c Mon Dec 30 19:07:31 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: acpi_util.c,v 1.33 2022/07/23 03:08:17 thorpej Exp $ */ +/* $NetBSD: acpi_util.c,v 1.34 2024/12/30 19:07:31 jmcneill Exp $ */ /*- * Copyright (c) 2003, 2007, 2021 The NetBSD Foundation, Inc. @@ -65,7 +65,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: acpi_util.c,v 1.33 2022/07/23 03:08:17 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: acpi_util.c,v 1.34 2024/12/30 19:07:31 jmcneill Exp $"); #include <sys/param.h> #include <sys/kmem.h> @@ -782,7 +782,7 @@ acpi_match_cpu_info(struct cpu_info *ci) ACPI_HANDLE hdl; ACPI_STATUS rv; - if (sc == NULL || acpi_active == 0) + if (sc == NULL) return NULL; /*