freebsd-skq/sys/dev/acpica
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
..
Osd
acpi_acad.c
acpi_battery.c
acpi_button.c
acpi_cmbat.c
acpi_cpu.c If x86 CPU implementation of the MWAIT instruction reasonably 2015-05-09 12:28:48 +00:00
acpi_dock.c
acpi_ec.c
acpi_hpet.c
acpi_hpet.h
acpi_if.m
acpi_isab.c
acpi_lid.c
acpi_package.c If x86 CPU implementation of the MWAIT instruction reasonably 2015-05-09 12:28:48 +00:00
acpi_pci_link.c
acpi_pci.c
acpi_pcib_acpi.c
acpi_pcib_pci.c
acpi_pcib.c
acpi_pcibvar.h
acpi_perf.c
acpi_powerres.c
acpi_quirk.c
acpi_quirks
acpi_resource.c
acpi_smbat.c
acpi_smbus.h
acpi_thermal.c
acpi_throttle.c
acpi_timer.c If the power management timer is unsupported the PmTimerLength value will 2015-05-06 14:09:54 +00:00
acpi_video.c
acpi.c AcpiGbl_FACS will not be defined when building using the reduced hardware 2015-05-06 14:14:14 +00:00
acpiio.h
acpivar.h If x86 CPU implementation of the MWAIT instruction reasonably 2015-05-09 12:28:48 +00:00