File remove-power_savings.patch of Package pm-profiler

"sched_mc_power_savings" and "sched_smt_power_savings" were removed from kernel
on 2012-05-17, as they were not working correctly.
Commit 8e7fbcbc22c12414bcc9dfdd683637f58fb32759.


--- pm-profiler-0.1_20111222/tools/enable-profile.orig	2020-11-01 02:13:33.858444971 +0100
+++ pm-profiler-0.1_20111222/tools/enable-profile	2020-11-01 11:08:56.123778363 +0100
@@ -112,18 +112,6 @@ function cpufreq_ondemand_powersave_bias
     fi
 }
 
-function cpufreq_sched_mc_power_savings {
-    path_mc="/sys/devices/system/cpu/sched_mc_power_savings"
-    path_smt="/sys/devices/system/cpu/sched_smt_power_savings"
-
-    if [ -w "$path_mc" ] ; then
-        echo $CPUFREQ_SCHED_MC_POWER_SAVINGS > $path_mc
-    fi
-    if [ -w "$path_smt" ] ; then
-        echo $CPUFREQ_SCHED_MC_POWER_SAVINGS > $path_smt
-    fi
-}
-
 function sata_alpm {
     for I in /sys/class/scsi_host/host*/link_power_management_policy; do
 	[ -e $I ] && echo $SATA_ALPM > $I
@@ -171,7 +159,6 @@ esac
 [ -n "$CPUFREQ_SAMPLING_RATE" ] && cpufreq_sampling_rate
 [ -n "$CPUFREQ_SAMPLING_DOWN_FACTOR" ] && cpufreq_sampling_down_factor
 [ -n "$CPUFREQ_ONDEMAND_POWERSAVE_BIAS" ] && cpufreq_ondemand_powersave_bias
-[ -n "$CPUFREQ_SCHED_MC_POWER_SAVINGS" ] && cpufreq_sched_mc_power_savings
 [ -n "$SATA_ALPM" ] && sata_alpm
 [ -n "$EXTERNAL_HOOK" ] && external_hook
 [ -n "$DIRTY_WRITEBACK_CENTISECS" ] && dirty_writeback_centisecs
--- pm-profiler-0.1_20111222/tools/get-current-settings.orig	2020-11-01 02:13:33.858444971 +0100
+++ pm-profiler-0.1_20111222/tools/get-current-settings	2020-11-01 11:09:23.396414846 +0100
@@ -96,22 +96,6 @@ function get_cpufreq_ondemand_powersave_
     echo $Option"="$Value
 }
 
-function get_cpufreq_sched_mc_power_savings {
-    path_mc="/sys/devices/system/cpu/sched_mc_power_savings"
-    path_smp="/sys/devices/system/cpu/sched_smp_power_savings"
-
-    if [ -f "$path_mc" ] ; then
-        Option="CPUFREQ_SCHED_MC_POWER_SAVINGS"
-        Value=`cat $path_mc`
-        echo $Option"="$Value
-    fi
-    if [ -f "$path_smp" ] ; then
-        Option="CPUFREQ_SCHED_MC_POWER_SAVINGS"
-        Value=`cat $path_smp`
-        echo $Option"="$Value
-    fi
-}
-
 function get_sata_alpm {
     Option="SATA_ALPM"
     Value=
@@ -147,7 +131,6 @@ function get_read_ahead_kb {
 }
 
 get_cpufreq_governor
-get_cpufreq_sched_mc_power_savings
 get_sata_alpm
 #get_external_hook
 get_dirty_writeback_centisecs
--- pm-profiler-0.1_20111222/doc/config.template.orig	2020-11-01 02:13:33.858444971 +0100
+++ pm-profiler-0.1_20111222/doc/config.template	2020-11-01 11:09:53.813124874 +0100
@@ -25,15 +25,6 @@ CPUFREQ_GOVERNOR=""
 #
 CPUFREQ_MINIMIZE_SCALING_MAX_FREQ=""
 
-# See http://www.lesswatts.org/tips/cpu.php for a good explanation about
-# what it does
-#
-# Possible values: 0 (default) or 1
-#
-# File: /sys/devices/system/cpu/sched_mc_power_savings
-#
-CPUFREQ_SCHED_MC_POWER_SAVINGS=""
-
 # Defines the time the CPU has to be busy in order to switch up
 # frequencies. This setting does only make sense in conjunction with the
 # ondemand or conservative governor.
--- pm-profiler-0.1_20111222/profiles/balanced_low_latency/config.orig	2020-07-23 16:43:34.655247367 +0200
+++ pm-profiler-0.1_20111222/profiles/balanced_low_latency/config	2020-07-23 16:57:38.899140995 +0200
@@ -1,6 +1,5 @@
 NAME="Balanced Low Latency Computing"
 DESCRIPTION="Profile optimized for low latency with a certain consideration of power consumption."
 CPUFREQ_GOVERNOR="ondemand"
-CPUFREQ_SCHED_MC_POWER_SAVINGS="0"
 CPUFREQ_ONDEMAND_UP_THRESHOLD="20"
 SATA_ALPM="medium_power"
--- pm-profiler-0.1_20111222/profiles/low_latency/config.orig	2011-12-22 08:36:52.000000000 +0100
+++ pm-profiler-0.1_20111222/profiles/low_latency/config	2020-07-23 16:58:13.063946085 +0200
@@ -1,6 +1,5 @@
 NAME="Low Latency Computing"
 DESCRIPTION="Profile optimized for low latency and best performance with no consideration of power consumption."
 CPUFREQ_GOVERNOR="performance"
-CPUFREQ_SCHED_MC_POWER_SAVINGS="0"
 SATA_ALPM="max_performance"
 DIRTY_WRITEBACK_CENTISECS="300"
--- pm-profiler-0.1_20111222/profiles/onbattery/config.orig	2020-07-23 16:59:22.513582405 +0200
+++ pm-profiler-0.1_20111222/profiles/onbattery/config	2020-07-23 16:59:34.745870618 +0200
@@ -1,7 +1,6 @@
 NAME="Onbattery"
 DESCRIPTION="Profile optimized for running on UPS battery."
 CPUFREQ_GOVERNOR="powersave"
-CPUFREQ_MINIMIZE_SCALING_MAX_FREQ="1"
 SATA_ALPM="min_power"
 DIRTY_WRITEBACK_CENTISECS="500"
 READ_AHEAD_KB="128"
--- pm-profiler-0.1_20111222/profiles/powersaving/config.orig	2020-07-23 17:03:02.066755437 +0200
+++ pm-profiler-0.1_20111222/profiles/powersaving/config	2020-07-23 17:02:54.082567308 +0200
@@ -1,7 +1,6 @@
 NAME="Powersaving"
 DESCRIPTION="Profile optimized for a low power consumption at the price of a higher latency. Useful for systems which are not accessed frequently."
 CPUFREQ_GOVERNOR="ondemand"
-CPUFREQ_SCHED_MC_POWER_SAVINGS="1"
 SATA_ALPM="min_power"
 DIRTY_WRITEBACK_CENTISECS="1500"
 READ_AHEAD_KB="3072"
openSUSE Build Service is sponsored by