Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 91790 Details for
Bug 140505
disabled governor for cpufrequtils (patch)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
default-state.patch
default-state.patch (text/plain), 969 bytes, created by
Brian Harring (RETIRED)
on 2006-07-15 08:22:12 UTC
(
hide
)
Description:
default-state.patch
Filename:
MIME Type:
Creator:
Brian Harring (RETIRED)
Created:
2006-07-15 08:22:12 UTC
Size:
969 bytes
patch
obsolete
>--- /root/cpufrequtils 2006-07-15 08:11:54.000000000 -0700 >+++ cpufrequtils 2006-07-15 08:18:27.000000000 -0700 >@@ -8,19 +8,36 @@ > eerror "No governor set in /etc/conf.d/cpufrequtils" > return 1 > fi >+ if [ -z "${RESTORED_GOVERNOR}" ]; then >+ RESTORED_GOVERNOR=performance >+ fi > } > >-start() { >- local cpu n > >- checkconfig || return 1 >+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/*; do > n=$(basename ${cpu}) > n=${n/cpu/} > >- ebegin "Enabling ${GOVERNOR} cpufreq governor on CPU${n}" >- cpufreq-set -c ${n} -g ${GOVERNOR} >+ ebegin "${1} ${2} cpufreq governor on CPU${n}" >+ cpufreq-set -c ${n} -g "${2}" > eend ${?} > done > } >+ >+ >+start() { >+ checkconfig || return 1 >+ affect_change "Enabling" "${GOVERNOR}" >+} >+ >+stop() { >+ checkconfig || return 1 >+ affect_change "Disabling" "${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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 140505
: 91790