mptable - use the table's cpu_flags
authorAlex Hornung <alex@alexhornung.com>
Sun, 29 Jul 2012 15:28:00 +0000 (15:28 +0000)
committerAlex Hornung <alex@alexhornung.com>
Sun, 29 Jul 2012 15:56:12 +0000 (15:56 +0000)
commitb7fe87d9c44618d094a0afadc408e5466a726604
tree43a22cd722a755733e162f19b8bdd48da227c643
parent8485d1c10a2a314c64a1c29c97f7c56409b0b149
mptable - use the table's cpu_flags

 * Sometimes the CPUs are marked as disabled in the APIC table, and for
   good reason (e.g. a machine having only 24 cores, but 32 appearing in
   the APIC table, 8 of them disabled).

 * Just in case, provide an override that falls back to the old
   behaviour. This is the tunable hw.lapic_force_enable. It will force
   all lapic entries to be marked as enabled. It is however not the
   default.

 * When parsing, don't error out when a lapic id is invalid (255) but it
   is disabled.

Reported-by: Mihai Carabas, Francois Tigeot
sys/platform/pc32/acpica5/acpi_madt.c
sys/platform/pc32/i386/mptable.c
sys/platform/pc64/acpica5/acpi_madt.c
sys/platform/pc64/x86_64/mptable.c