acpi/cstate: Rework preamble operation for entering C-state
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 30 Jan 2014 03:51:05 +0000 (11:51 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 30 Jan 2014 04:00:15 +0000 (12:00 +0800)
commit9925408fc563a8a76da9d5337007424b2f1a3858
treef80f554262a2c2b0f48919e1b33c2e2aaa2abfc2
parentbdd6673534cb3bcd6b21de070f0e556637d049a0
acpi/cstate: Rework preamble operation for entering C-state

- Save preamble operation in C-state struct, instead of choosing
  preamble operation at run time
- Add machine depend C-state setup code to optimize out certain
  preamble operation for various CPU vendors
- Fix up generic preamble operation setup according to ACPI spec
sys/dev/acpica/Makefile
sys/dev/acpica/acpi_cpu_cstate.c
sys/dev/acpica/acpi_cpu_cstate.h [new file with mode: 0644]
sys/platform/pc32/acpica/acpi_cstate_machdep.c [new file with mode: 0644]
sys/platform/pc32/conf/files
sys/platform/pc64/acpica/acpi_cstate_machdep.c [new file with mode: 0644]
sys/platform/pc64/conf/files