acpica/acpi_wakeup.c:115:24: error: use of undeclared identifier 'suspended_cpus'

From: Ian FREISLICH <ianfreislich_at_gmail.com>
Date: Sat, 26 Jul 2025 18:56:14 UTC
Hi

I get this error compiling for UP but not SMP.

/usr/src/sys/amd64/acpica/acpi_wakeup.c:115:24: error: use of undeclared 
identifier 'suspended_cpus'
   115 |                 if (!CPU_ISSET(cpu, &suspended_cpus))
       |                                      ^
/usr/src/sys/amd64/acpica/acpi_wakeup.c:199:32: error: call to 
undeclared function 'suspend_cpus'; ISO C99 and later do not support 
implicit function declarations [-Werror,-Wimplicit-function-declaration]
   199 |                 if (!CPU_EMPTY(&suspcpus) && 
suspend_cpus(suspcpus) == 0) {
       |                                              ^
/usr/src/sys/amd64/acpica/acpi_wakeup.c:272:4: error: call to undeclared 
function 'resume_cpus'; ISO C99 and later do not support implicit 
function declarations [-Werror,-Wimplicit-function-declaration]
   272 |                         resume_cpus(suspcpus);
       |                         ^
3 errors generated.
*** Error code 1

Stop.


Ian