Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 164134 Details for
Bug 190997
sys-power/cpufrequtils - let init script also set up_threshold values with "ondemand" governor
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
cpufrequtils-init.d
cpufrequtils-init.d (text/plain), 1.47 KB, created by
Pacho Ramos
on 2008-08-30 21:12:22 UTC
(
hide
)
Description:
cpufrequtils-init.d
Filename:
MIME Type:
Creator:
Pacho Ramos
Created:
2008-08-30 21:12:22 UTC
Size:
1.47 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2006 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/sys-power/cpufrequtils/files/cpufrequtils-init.d,v 1.3 2008/08/11 17:46:54 armin76 Exp $ > >checkconfig() { > if [ -z "${GOVERNOR}" ]; then > eerror "No governor set in /etc/conf.d/cpufrequtils" > return 1 > fi > if [ -z "${RESTORED_GOVERNOR}" ]; then > eerror "Set the RESTORED_GOVERNOR value in /etc/conf.d/cpufrequtils" > return 1 > fi >} > > >affect_change() { > if [ "$#" != "2" ]; then > eerror "affect_change called in correctly, need two args, action, and governor" > return 1 > fi > local cpu n > > for cpu in /sys/devices/system/cpu/cpu[0-9]*; do > n=${cpu##*cpu} > > ebegin "${1} ${2} cpufreq governor on CPU${n}" > cpufreq-set -c ${n} -g "${2}" > eend ${?} > done >} > > >start() { > checkconfig || return 1 > affect_change "Enabling" "${GOVERNOR}" > > if [ "${UP_THRESHOLD}" ]; then > if [ "${GOVERNOR}" == "ondemand" ]; then > for cpu in /sys/devices/system/cpu/cpu[0-9]*; do > n=${cpu##*cpu} > > ebegin "Setting custom up_threshold on CPU${n} to ${UP_THRESHOLD} " > echo "${UP_THRESHOLD}" > "${cpu}"/cpufreq/ondemand/up_threshold > eend ${?} > done > fi > fi >} > >stop() { > checkconfig || return 1 > affect_change "Enabling" "${RESTORED_GOVERNOR}" >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 190997
:
129790
|
129791
|
164132
| 164134