summaryrefslogtreecommitdiffstats
path: root/sys/modules/acpi
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2003-11-26 19:01:33 +0000
committernjl <njl@FreeBSD.org>2003-11-26 19:01:33 +0000
commitde5ea0895c09169faa73049888b11e02ce9db310 (patch)
tree4d2f684e2068c0484573d1d5c0dc34360c6f3f03 /sys/modules/acpi
parent3ad0860a53a594183a836401532fba3a2209c30f (diff)
downloadFreeBSD-src-de5ea0895c09169faa73049888b11e02ce9db310.zip
FreeBSD-src-de5ea0895c09169faa73049888b11e02ce9db310.tar.gz
* Add acpi_pcpu_get_id(idx, *acpi_id, *cpu_id) which fetches the
idx'th present CPU with pc_acpi_id equal to *acpi_id. If *acpi_id does not match that processor's pc_acpi_id, return the value for ProcId derived from the MADT in *acpi_id. If pc_acpi_id is 0xffffffff, always override it with the value of *acpi_id. Finally, return pc_cpuid in *cpu_id and use that as our primary key. * Use pc_cpuid as our unique key because we know it is valid since MD code set it. The values for ProcId in the ASL and MADT don't match up on some machines (!), forcing us to fall back to ordered probing in that case. * Remove some #ifdef SMP since the refcount doesn't hurt performance and will be needed for dynamic _CST objects. Only one #ifdef SMP (for smp_rendezvous) remains. * Hook up SMP in the compile flags in the Makefile. Tested by: marcel, truckman Approved by: re (scottl)
Diffstat (limited to 'sys/modules/acpi')
-rw-r--r--sys/modules/acpi/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/modules/acpi/Makefile b/sys/modules/acpi/Makefile
index a7998ab..b81c2cc 100644
--- a/sys/modules/acpi/Makefile
+++ b/sys/modules/acpi/Makefile
@@ -44,11 +44,14 @@ SRCS+= OsdHardware.c OsdInterrupt.c OsdMemory.c OsdSchedule.c
SRCS+= OsdStream.c OsdSynch.c OsdTable.c OsdEnvironment.c
SRCS+= opt_acpi.h opt_bus.h opt_ddb.h
SRCS+= device_if.h bus_if.h pci_if.h pcib_if.h isa_if.h
+.if ACPI_MAX_THREADS
+CFLAGS+=-DACPI_MAX_THREADS=${ACPI_MAX_THREADS}
+.endif
.if ACPI_NO_SEMAPHORES
CFLAGS+=-DACPI_NO_SEMAPHORES
.endif
-.if ACPI_MAX_THREADS
-CFLAGS+=-DACPI_MAX_THREADS=${ACPI_MAX_THREADS}
+.if SMP
+CFLAGS+=-DSMP
.endif
# Debugging support
OpenPOWER on IntegriCloud