rpms/cpuspeed/devel cpuspeed.init, 1.38, 1.39 cpuspeed.spec, 1.63, 1.64

Jarod Wilson (jwilson) fedora-extras-commits at redhat.com
Thu Mar 13 02:11:09 UTC 2008


Author: jwilson

Update of /cvs/pkgs/rpms/cpuspeed/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15517

Modified Files:
	cpuspeed.init cpuspeed.spec 
Log Message:
* Wed Mar 12 2008 Jarod Wilson <jwilson at redhat.com> 1.2.1-6
- Minor formatting and redirection fixups



Index: cpuspeed.init
===================================================================
RCS file: /cvs/pkgs/rpms/cpuspeed/devel/cpuspeed.init,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -r1.38 -r1.39
--- cpuspeed.init	26 Feb 2008 14:55:18 -0000	1.38
+++ cpuspeed.init	13 Mar 2008 02:10:30 -0000	1.39
@@ -37,7 +37,7 @@
 governor_is_module() {
   # Check to see if the requested cpufreq governor
   # is provided as a kernel module or not
-  module_info=`/sbin/modinfo cpufreq-${governor} 2>&1 > /dev/null`
+  module_info=`/sbin/modinfo cpufreq-${governor}`
   return $?
 }
 
@@ -111,9 +111,9 @@
 
 start() {
   if [ ! -f $lockfile ] && [ ! -d "$xendir" ]; then
+    cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
+    cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
     if ! some_file_exist $testpat ; then
-      cpu_vendor=$(awk '/vendor_id/{print $3}' /proc/cpuinfo | tail -n 1)
-      cpu_family=$(awk '/cpu family/{print $4}' /proc/cpuinfo | tail -n 1)
       # Attempt to load scaling_driver if not loaded
       # but it is configured
       if [ -n "$DRIVER" ]; then
@@ -121,7 +121,7 @@
       elif [ "$cpu_vendor" == AuthenticAMD ] && [ "$cpu_family" -ge 7 ]; then
         # Try loading powernow-k8 if this is an AMD processor,
         # family 7 or greater (Athlon XP/MP was family 6)
-        pk8m=$(/sbin/modinfo powernow-k8 2>&1 > /dev/null)
+        pk8m=$(/sbin/modinfo powernow-k8 > /dev/null 2>&1)
         if [ "$?" -eq 0 ]; then
           /sbin/modprobe powernow-k8 2> /dev/null
           [ -d ${cpu0freqd} ] || /sbin/modprobe -r powernow-k8 2> /dev/null


Index: cpuspeed.spec
===================================================================
RCS file: /cvs/pkgs/rpms/cpuspeed/devel/cpuspeed.spec,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- cpuspeed.spec	14 Feb 2008 22:37:58 -0000	1.63
+++ cpuspeed.spec	13 Mar 2008 02:10:30 -0000	1.64
@@ -1,7 +1,7 @@
 Summary:        CPU frequency adjusting daemon
 Name:           cpuspeed
 Version:        1.2.1
-Release:        5%{?dist}
+Release:        6%{?dist}
 Epoch:          1
 Group:          System Environment/Base
 License:        GPL
@@ -89,6 +89,9 @@
 exit 0
 
 %changelog
+* Wed Mar 12 2008 Jarod Wilson <jwilson at redhat.com> 1.2.1-6
+- Minor formatting and redirection fixups
+
 * Thu Feb 14 2008 Jarod Wilson <jwilson at redhat.com> 1.2.1-5
 - Support for powernow-k8 as a kernel module
 




More information about the fedora-extras-commits mailing list