Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 362120 Details for
Bug 489650
sys-power/pm-utils - save scaling_cur_freq in 94cpufreq
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch implementing the saving of cpu speed
file_489650.txt (text/plain), 1.04 KB, created by
Jorge Nerin
on 2013-10-28 10:53:00 UTC
(
hide
)
Description:
Patch implementing the saving of cpu speed
Filename:
MIME Type:
Creator:
Jorge Nerin
Created:
2013-10-28 10:53:00 UTC
Size:
1.04 KB
patch
obsolete
>--- pm-utils-1.4.1.orig/pm/sleep.d/94cpufreq 2010-07-04 16:42:51.000000000 +0200 >+++ pm-utils-1.4.1/pm/sleep.d/94cpufreq 2013-09-12 07:23:58.196451091 +0200 >@@ -20,6 +20,8 @@ > grep -q "$TEMPORARY_CPUFREQ_GOVERNOR" \ > "$x/cpufreq/scaling_available_governors" || continue > savestate "${x}_governor" < "$gov" >+ speed="$x/cpufreq/scaling_cur_freq" >+ savestate "${x}_scaling_cur_freq" < "$speed" > echo "$TEMPORARY_CPUFREQ_GOVERNOR" > "$gov" > done ) > } >@@ -31,7 +33,13 @@ > [ -f "$x" ] || continue > state_exists "${x%%/*}_governor" || continue > restorestate "${x%%/*}_governor" > "$x" >- done ) >+ done >+ for x in cpu[0-9]*/cpufreq/scaling_setspeed ; do >+ [ -f "$x" ] || continue >+ state_exists "${x%%/*}_scaling_cur_freq" || continue >+ restorestate "${x%%/*}_scaling_cur_freq" > "$x" 2>/dev/null >+ done >+ ) > } > > case "$1" in
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 489650
: 362120