diff options
author | avg <avg@FreeBSD.org> | 2012-09-11 06:25:10 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2012-09-11 06:25:10 +0000 |
commit | 291fc901e4c54dda5c67d63780b0177af8894331 (patch) | |
tree | eea06054c35eca54fc6c30f85e26cf4f5fc82584 /etc/rc.d/power_profile | |
parent | 78789cf4a8e5c11b6508bd8203f04fce151250fa (diff) | |
download | FreeBSD-src-291fc901e4c54dda5c67d63780b0177af8894331.zip FreeBSD-src-291fc901e4c54dda5c67d63780b0177af8894331.tar.gz |
rc.d/power_profile: use recently added Cmax for cx_lowest
Trying to determine current lowest C-state after an AC event is racy
with C-states actually being changed by ACPI platform and kernel driver.
MFC after: 3 weeks
Diffstat (limited to 'etc/rc.d/power_profile')
-rwxr-xr-x | etc/rc.d/power_profile | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/etc/rc.d/power_profile b/etc/rc.d/power_profile index 581e861..7484ca0 100755 --- a/etc/rc.d/power_profile +++ b/etc/rc.d/power_profile @@ -81,8 +81,7 @@ esac # Set the various sysctls based on the profile's values. node="hw.acpi.cpu.cx_lowest" highest_value="C1" -lowest_value="`(sysctl -n dev.cpu.0.cx_supported | \ - awk '{ print "C" split($0, a) }' -) 2> /dev/null`" +lowest_value="Cmax" eval value=\$${profile}_cx_lowest sysctl_set |