Revision 5f2cafaf267c21f88857b06ae6e34febedc7ec0d authored by Mark Johnston on 05 July 2017, 19:24:53 UTC, committed by Mark Johnston on 05 July 2017, 19:24:53 UTC
Omit v_cache_count when computing the number of free pages, since its value is always 0. Approved by: re (gjb, kib)
1 parent 1da3ad1
powerd
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: powerd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: nojail shutdown
. /etc/rc.subr
name="powerd"
desc="Modify the power profile based on AC line state"
rcvar="powerd_enable"
command="/usr/sbin/${name}"
stop_postcmd=powerd_poststop
powerd_poststop()
{
sysctl dev.cpu.0.freq=`sysctl -n dev.cpu.0.freq_levels |
sed -e 's:/.*::'` > /dev/null
}
load_rc_config $name
run_rc_command "$1"
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...