summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2012-09-11 06:25:10 +0000
committeravg <avg@FreeBSD.org>2012-09-11 06:25:10 +0000
commit291fc901e4c54dda5c67d63780b0177af8894331 (patch)
treeeea06054c35eca54fc6c30f85e26cf4f5fc82584 /etc
parent78789cf4a8e5c11b6508bd8203f04fce151250fa (diff)
downloadFreeBSD-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')
-rwxr-xr-xetc/rc.d/power_profile3
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
OpenPOWER on IntegriCloud