When stopping powerd, set the CPU frequency back to its maximum value
(i.e., what it was almost certainly at before powerd was started). Submitted by: R.B. Riddick MFC after: 3 days
This commit is contained in:
parent
084556f5d7
commit
1dcb6ad173
@ -13,6 +13,13 @@
|
||||
name="powerd"
|
||||
rcvar=`set_rcvar`
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user