git: acpi/cstate: Rework preamble operation for entering C-state

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Wed Jan 29 20:00:48 PST 2014


commit 9925408fc563a8a76da9d5337007424b2f1a3858
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Thu Jan 30 11:51:05 2014 +0800

    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

Summary of changes:
 sys/dev/acpica/Makefile                            |   2 +
 sys/dev/acpica/acpi_cpu_cstate.c                   | 207 +++++++++++++--------
 sys/dev/acpica/{acpi_cpu.h => acpi_cpu_cstate.h}   |  44 +++--
 .../pc32/acpica/acpi_cstate_machdep.c}             |  79 ++++----
 sys/platform/pc32/conf/files                       |   1 +
 .../pc64/acpica/acpi_cstate_machdep.c}             |  79 ++++----
 sys/platform/pc64/conf/files                       |   1 +
 7 files changed, 248 insertions(+), 165 deletions(-)
 copy sys/dev/acpica/{acpi_cpu.h => acpi_cpu_cstate.h} (59%)
 copy sys/{sys/microtime_pcpu.h => platform/pc32/acpica/acpi_cstate_machdep.c} (57%)
 copy sys/{sys/microtime_pcpu.h => platform/pc64/acpica/acpi_cstate_machdep.c} (57%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9925408fc563a8a76da9d5337007424b2f1a3858


-- 
DragonFly BSD source repository



More information about the Commits mailing list