svn commit: r240343 - head/etc/rc.d
Andriy Gapon
avg at FreeBSD.org
Tue Sep 11 06:25:11 UTC 2012
Author: avg
Date: Tue Sep 11 06:25:10 2012
New Revision: 240343
URL: http://svn.freebsd.org/changeset/base/240343
Log:
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
Modified:
head/etc/rc.d/power_profile
Modified: head/etc/rc.d/power_profile
==============================================================================
--- head/etc/rc.d/power_profile Tue Sep 11 06:18:36 2012 (r240342)
+++ head/etc/rc.d/power_profile Tue Sep 11 06:25:10 2012 (r240343)
@@ -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
More information about the svn-src-all
mailing list