Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 135630 Details for
Bug 179729
sys-power/cpufrequtils - ignore_nice_load
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
/etc/init.d/cpufrequtils
cpufrequtils (text/plain), 1.17 KB, created by
Andrew Spurrier
on 2007-11-10 12:55:42 UTC
(
hide
)
Description:
/etc/init.d/cpufrequtils
Filename:
MIME Type:
Creator:
Andrew Spurrier
Created:
2007-11-10 12:55:42 UTC
Size:
1.17 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.2 2007/05/17 09:07:35 phreak Exp $ > >checkconfig() { > if [ -z "${GOVERNOR}" ]; then > eerror "No governor set in /etc/conf.d/cpufrequtils" > return 1 > fi > if [ -z "${RESTORED_GOVERNOR}" ]; then > RESTORED_GOVERNOR=performance > 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}" > > if [ "${GOVERNOR}" == "ondemand" ]; then > if [ -n "${IGNORE_NICE_LOAD}" ]; then > echo ${IGNORE_NICE_LOAD} > $cpu/cpufreq/ondemand/ignore_nice_load > fi > if [ -n "${SAMPLING_RATE}" ]; then > echo ${SAMPLING_RATE} > $cpu/cpufreq/ondemand/sampling_rate > fi > fi > eend ${?} > done >} > > >start() { > checkconfig || return 1 > affect_change "Enabling" "${GOVERNOR}" >} > >stop() { > checkconfig || return 1 > affect_change "Disabling" "${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 179729
:
135622
|
135624
|
135630
|
136589
|
136591