rpms/cpuspeed/devel cpuspeed.init,1.48,1.49 cpuspeed.spec,1.83,1.84

Petr Sabata psabata at fedoraproject.org
Wed Jul 21 12:14:20 UTC 2010


Author: psabata

Update of /cvs/pkgs/rpms/cpuspeed/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv25917

Modified Files:
	cpuspeed.init cpuspeed.spec 
Log Message:
* Wed Jul 21 2010 Petr Sabata <psabata at redhat.com> - 1:1.5-14
- Init script now resets MIN/MAX values in case of empty config file
- Patch by Francois Cami, rhbz#616507



Index: cpuspeed.init
===================================================================
RCS file: /cvs/pkgs/rpms/cpuspeed/devel/cpuspeed.init,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -p -r1.48 -r1.49
--- cpuspeed.init	13 Nov 2009 19:59:17 -0000	1.48
+++ cpuspeed.init	21 Jul 2010 12:14:20 -0000	1.49
@@ -220,9 +220,13 @@ start() {
     else
       if [ -n "$MIN_SPEED" ]; then
         adjust_cpufreq scaling_min_freq $MIN_SPEED
+      else
+        adjust_cpufreq scaling_min_freq 0
       fi
       if [ -n "$MAX_SPEED" ]; then
         adjust_cpufreq scaling_max_freq $MAX_SPEED
+      else
+        adjust_cpufreq scaling_max_freq `cut -d " " -f 1 $cpu/cpufreq/scaling_available_frequencies`
       fi
       if [ -n "$UP_THRESHOLD" -a ${governor} == "ondemand" ]; then
         adjust_cpufreq ondemand/up_threshold $UP_THRESHOLD


Index: cpuspeed.spec
===================================================================
RCS file: /cvs/pkgs/rpms/cpuspeed/devel/cpuspeed.spec,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -p -r1.83 -r1.84
--- cpuspeed.spec	13 Nov 2009 19:59:17 -0000	1.83
+++ cpuspeed.spec	21 Jul 2010 12:14:20 -0000	1.84
@@ -1,7 +1,7 @@
 Summary:        CPU frequency adjusting daemon
 Name:           cpuspeed
 Version:        1.5
-Release:        13%{?dist}
+Release:        14%{?dist}
 Epoch:          1
 Group:          System Environment/Base
 License:        GPLv2+
@@ -81,6 +81,10 @@ fi
 exit 0
 
 %changelog
+* Wed Jul 21 2010 Petr Sabata <psabata at redhat.com> - 1:1.5-14
+- Init script now resets MIN/MAX values in case of empty config file
+- Patch by Francois Cami, rhbz#616507
+
 * Fri Nov 13 2009 Jarod Wilson <jarod at redhat.com> 1.5-13
 - Move startup prio so we start after syslog, so any notices during
   system startup actually get logged



More information about the scm-commits mailing list