diff options
author | mav <mav@FreeBSD.org> | 2009-05-02 22:30:33 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2009-05-02 22:30:33 +0000 |
commit | c2533a5a87888e415e5a218e11fec455c1d47b25 (patch) | |
tree | c5637d0fcb1933abb4169174ceff578526a62ccc /contrib/file/file.c | |
parent | 7066780d7a9b6b9040590f989b5123498442edbb (diff) | |
download | FreeBSD-src-c2533a5a87888e415e5a218e11fec455c1d47b25.zip FreeBSD-src-c2533a5a87888e415e5a218e11fec455c1d47b25.tar.gz |
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.
Diffstat (limited to 'contrib/file/file.c')
0 files changed, 0 insertions, 0 deletions