summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2007-01-08 00:45:46 +0000
committernjl <njl@FreeBSD.org>2007-01-08 00:45:46 +0000
commit8825eb7340fd7c42a8c7eb5c3789dede0e9de8da (patch)
tree9d6f72fe325eca03d96054ae8e36506076a676ce /sys
parent20cb894d777d446b2a990558635f8edb332ed501 (diff)
downloadFreeBSD-src-8825eb7340fd7c42a8c7eb5c3789dede0e9de8da.zip
FreeBSD-src-8825eb7340fd7c42a8c7eb5c3789dede0e9de8da.tar.gz
Fix LINT and ACPI_DEBUG builds and add print for use of flush cache inst.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/acpica/acpi_cpu.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c
index 43e007d..4ade927 100644
--- a/sys/dev/acpica/acpi_cpu.c
+++ b/sys/dev/acpica/acpi_cpu.c
@@ -965,13 +965,11 @@ acpi_cpu_quirks(void)
if (AcpiGbl_FADT->WbInvd && AcpiGbl_FADT->WbInvdFlush == 0) {
cpu_quirks |= CPU_QUIRK_NO_BM_CTRL;
ACPI_DEBUG_PRINT((ACPI_DB_INFO,
- "acpi_cpu%d: no BM control, using flush cache method\n",
- device_get_unit(sc->cpu_dev)));
+ "acpi_cpu: no BM control, using flush cache method\n"));
} else {
cpu_quirks |= CPU_QUIRK_NO_C3;
ACPI_DEBUG_PRINT((ACPI_DB_INFO,
- "acpi_cpu%d: no BM control, C3 not available\n",
- device_get_unit(sc->cpu_dev)));
+ "acpi_cpu: no BM control, C3 not available\n"));
}
}
@@ -979,8 +977,11 @@ acpi_cpu_quirks(void)
* If we are using generic Cx mode, C3 on multiple CPUs requires using
* the expensive flush cache instruction.
*/
- if (cpu_cx_generic && mp_ncpus > 1)
+ if (cpu_cx_generic && mp_ncpus > 1) {
cpu_quirks |= CPU_QUIRK_NO_BM_CTRL;
+ ACPI_DEBUG_PRINT((ACPI_DB_INFO,
+ "acpi_cpu: SMP, using flush cache mode for C3\n"));
+ }
/* Look for various quirks of the PIIX4 part. */
acpi_dev = pci_find_device(PCI_VENDOR_INTEL, PCI_DEVICE_82371AB_3);
@@ -1001,6 +1002,8 @@ acpi_cpu_quirks(void)
case PCI_REVISION_4E:
case PCI_REVISION_4M:
cpu_quirks |= CPU_QUIRK_NO_C3;
+ ACPI_DEBUG_PRINT((ACPI_DB_INFO,
+ "acpi_cpu: working around PIIX4 bug, disabling C3\n"));
break;
default:
break;
OpenPOWER on IntegriCloud