summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/power_profile
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-05-07 05:22:38 +0000
committernjl <njl@FreeBSD.org>2004-05-07 05:22:38 +0000
commit055815ed7e46944882d8d61591fbbd5d1e390a84 (patch)
tree9006c91f89da2e5720d976ecff27f6610c16d209 /etc/rc.d/power_profile
parentf822beb73630f72486689173c8a0ef9670e15c56 (diff)
downloadFreeBSD-src-055815ed7e46944882d8d61591fbbd5d1e390a84.zip
FreeBSD-src-055815ed7e46944882d8d61591fbbd5d1e390a84.tar.gz
Change hw.acpi.cpu.cx_lowest to accept values in the form of C1,
C2, ... Update power_profile to use the new format. Update the man page to reflect this and give more info on Cx states.
Diffstat (limited to 'etc/rc.d/power_profile')
-rw-r--r--etc/rc.d/power_profile4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/power_profile b/etc/rc.d/power_profile
index a5113d5..7e23cf5 100644
--- a/etc/rc.d/power_profile
+++ b/etc/rc.d/power_profile
@@ -71,9 +71,9 @@ esac
# Set the various sysctls based on the profile's values.
node="hw.acpi.cpu.cx_lowest"
-highest_value=0
+highest_value="C1"
lowest_value="$(sysctl -n hw.acpi.cpu.cx_supported | \
- awk '{ print split($0, a) - 1 }' - 2> /dev/null)"
+ awk '{ print "C" split($0, a) }' - 2> /dev/null)"
eval value=\$${profile}_cx_lowest
sysctl_set
OpenPOWER on IntegriCloud