freebsd-dev/sys/x86
Konstantin Belousov b57a73f8e7 If x86 CPU implementation of the MWAIT instruction reasonably
interacts with interrupts, query ACPI and use MWAIT for entrance into
Cx sleep states.  Support C1 "I/O then halt" mode.  See Intel'
document 302223-007 "Intelб╝ Processor Vendor-Specific ACPI Interface
Specification" for description.

Move the acpi_cpu_c1() function into x86/cpu_machdep.c and use
it instead of inlining "sti; hlt" sequence in several places.

In the acpi(4) man page, besides documenting the dev.cpu.N.cx_methods
sysctl, correct the names for dev.cpu.N.{cx_usage,cx_lowest,cx_supported}
sysctls.

Both jkim and avg have some other patches implementing the mwait
functionality; this work is unrelated.  Linux does not rely on the
ACPI to provide correct tables describing Cx modes.  Instead, the
driver has pre-defined knowledge of the CPU models, it was supplied by
Intel.

Tested by:    pho (previous versions)
Sponsored by:	The FreeBSD Foundation
2015-05-09 12:28:48 +00:00
..
acpica Add initial memory locality cost awareness to the VM, and include 2015-05-08 00:56:56 +00:00
bios
cpufreq
include If x86 CPU implementation of the MWAIT instruction reasonably 2015-05-09 12:28:48 +00:00
iommu Account for the offset of the page run when allocating the 2015-04-08 01:55:22 +00:00
isa
pci Reassign copyright statements on several files from Advanced 2015-04-23 14:22:20 +00:00
x86 If x86 CPU implementation of the MWAIT instruction reasonably 2015-05-09 12:28:48 +00:00
xen xen: introduce a newbus function to allocate unused memory 2015-05-08 14:48:40 +00:00