DragonFly-2.3.0.886.g911af master sys/dev/acpica5 acpi_cpu.c

Hasso Tepper hasso at crater.dragonflybsd.org
Mon May 4 01:55:11 PDT 2009


commit 911afb96071041a61df2e12cdaa8916dbde80c96
Author: Hasso Tepper <hasso at estpak.ee>
Date:   Mon May 4 11:45:16 2009 +0300

    Rework a CPU C-state selection logic a bit.
    
    Avoid comparing negative signed to positive unsignad values. It was
    leading to a bug, when C-state does not decrease on sleep shorter then
    declared transition latency. Fixing this deprecates workaround for broken
    C-states on some hardware.
    
    By the way, change state selecting logic a bit. Instead of last sleep
    time use short-time average of it. Global interrupts rate in system is a
    quite random value, to corellate subsequent sleeps so directly.
    
    Obtained-from: FreeBSD

Summary of changes:
 sys/dev/acpica5/acpi_cpu.c |   53 +++++++++----------------------------------
 1 files changed, 11 insertions(+), 42 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/911afb96071041a61df2e12cdaa8916dbde80c96


-- 
DragonFly BSD source repository





More information about the Commits mailing list