Line
Link Here
|
0 |
-- pm-utils-1.4.1.orig/pm/sleep.d/94cpufreq 2010-07-04 16:42:51.000000000 +0200 |
0 |
++ pm-utils-1.4.1/pm/sleep.d/94cpufreq 2013-09-12 07:23:58.196451091 +0200 |
Lines 20-25
Link Here
|
20 |
grep -q "$TEMPORARY_CPUFREQ_GOVERNOR" \ |
20 |
grep -q "$TEMPORARY_CPUFREQ_GOVERNOR" \ |
21 |
"$x/cpufreq/scaling_available_governors" || continue |
21 |
"$x/cpufreq/scaling_available_governors" || continue |
22 |
savestate "${x}_governor" < "$gov" |
22 |
savestate "${x}_governor" < "$gov" |
|
|
23 |
speed="$x/cpufreq/scaling_cur_freq" |
24 |
savestate "${x}_scaling_cur_freq" < "$speed" |
23 |
echo "$TEMPORARY_CPUFREQ_GOVERNOR" > "$gov" |
25 |
echo "$TEMPORARY_CPUFREQ_GOVERNOR" > "$gov" |
24 |
done ) |
26 |
done ) |
25 |
} |
27 |
} |
Lines 31-37
Link Here
|
31 |
[ -f "$x" ] || continue |
33 |
[ -f "$x" ] || continue |
32 |
state_exists "${x%%/*}_governor" || continue |
34 |
state_exists "${x%%/*}_governor" || continue |
33 |
restorestate "${x%%/*}_governor" > "$x" |
35 |
restorestate "${x%%/*}_governor" > "$x" |
34 |
done ) |
36 |
done |
|
|
37 |
for x in cpu[0-9]*/cpufreq/scaling_setspeed ; do |
38 |
[ -f "$x" ] || continue |
39 |
state_exists "${x%%/*}_scaling_cur_freq" || continue |
40 |
restorestate "${x%%/*}_scaling_cur_freq" > "$x" 2>/dev/null |
41 |
done |
42 |
) |
35 |
} |
43 |
} |
36 |
|
44 |
|
37 |
case "$1" in |
45 |
case "$1" in |