DragonFly commits List (threaded) for 2009-05
DragonFly BSD
DragonFly commits List (threaded) for 2009-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Hasso Tepper <hasso@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 4 May 2009 01:52:21 -0700 (PDT)

commit 911afb96071041a61df2e12cdaa8916dbde80c96
Author: Hasso Tepper <hasso@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]