Hello community,

here is the log from the commit of package pm-profiler for 
openSUSE:12.1:Update:Test checked in at 2011-12-22 12:32:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.1:Update:Test/pm-profiler (Old)
 and      /work/SRC/openSUSE:12.1:Update:Test/.pm-profiler.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "pm-profiler", Maintainer is "[email protected]"

Changes:
--------
--- /work/SRC/openSUSE:12.1:Update:Test/pm-profiler/pm-profiler.changes 
2011-12-22 12:32:27.000000000 +0100
+++ /work/SRC/openSUSE:12.1:Update:Test/.pm-profiler.new/pm-profiler.changes    
2011-12-22 12:32:29.000000000 +0100
@@ -1,0 +2,7 @@
+Thu Dec 22 09:23:00 CET 2011 - [email protected]
+
+- add pm-profiler-fix-cpufreq-for-linux-3.1.patch: up_threshold,
+  sampling_rate and powerasve_bias have moved for kernel > 3.1 and
+  the ondemand governor (bnc#737319)
+
+-------------------------------------------------------------------

New:
----
  pm-profiler-fix-cpufreq-for-linux-3.1.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ pm-profiler.spec ++++++
--- /var/tmp/diff_new_pack.QI7mbG/_old  2011-12-22 12:32:29.000000000 +0100
+++ /var/tmp/diff_new_pack.QI7mbG/_new  2011-12-22 12:32:29.000000000 +0100
@@ -26,6 +26,7 @@
 Url:            http://www.stilltobefound.org
 Group:          System/Management
 Source:         %{name}-%{version}.tar.bz2
+Patch:          pm-profiler-fix-cpufreq-for-linux-3.1.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 PreReq:         %insserv_prereq %fillup_prereq
 BuildArch:      noarch
@@ -46,6 +47,7 @@
 
 %prep
 %setup -q
+%patch -p1
 
 %build
 

++++++ pm-profiler-fix-cpufreq-for-linux-3.1.patch ++++++
Index: pm-profiler-0.1_git20110726/tools/enable-profile
===================================================================
--- pm-profiler-0.1_git20110726.orig/tools/enable-profile
+++ pm-profiler-0.1_git20110726/tools/enable-profile
@@ -39,17 +39,30 @@ function cpufreq_governor {
 }
 
 function cpufreq_ondemand_up_threshold {
-    echo $CPUFREQ_ONDEMAND_UP_THRESHOLD > 
/sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold;
+    # kernel 3.1 onwards has some cpufreq params at a new toplevel location
+    if [ -f /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold ]; then
+       echo $CPUFREQ_ONDEMAND_UP_THRESHOLD > 
/sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
+    elif [ -f /sys/devices/system/cpu/cpufreq/ondemand/up_threshold ]; then
+       echo $CPUFREQ_ONDEMAND_UP_THRESHOLD > 
/sys/devices/system/cpu/cpufreq/ondemand/up_threshold
+    fi
 }
 
 function cpufreq_ondemand_sampling_rate {
-    echo $CPUFREQ_ONDEMAND_SAMPLING_RATE 
>/sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate;
+    # kernel 3.1 onwards has some cpufreq params at a new toplevel location
+    if [ -f /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate ]; then
+       echo $CPUFREQ_ONDEMAND_SAMPLING_RATE 
>/sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate;
+    elif [ -f /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate ]; then
+       echo $CPUFREQ_ONDEMAND_SAMPLING_RATE 
>/sys/devices/system/cpu/cpufreq/ondemand/sampling_rate;
+    fi
 }
 
 function cpufreq_ondemand_powersave_bias {
-    for I in /sys/devices/system/cpu/cpu0/cpufreq/ondemand/powersave_bias; do
-       echo $CPUFREQ_ONDEMAND_POWERSAVE_BIAS > $I
-    done
+    # kernel 3.1 onwards has some cpufreq params at a new toplevel location
+    if [ -f /sys/devices/system/cpu/cpu0/cpufreq/ondemand/powersave_bias ]; 
then
+       echo $CPUFREQ_ONDEMAND_POWERSAVE_BIAS 
>/sys/devices/system/cpu/cpu0/cpufreq/ondemand/powersave_bias;
+    elif [ -f /sys/devices/system/cpu/cpufreq/ondemand/powersave_bias ]; then
+       echo $CPUFREQ_ONDEMAND_POWERSAVE_BIAS 
>/sys/devices/system/cpu/cpufreq/ondemand/powersave_bias;
+    fi
 }
 
 function cpufreq_sched_mc_power_savings {
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to