diff -Nru sysvinit-2.88dsf/debian/changelog sysvinit-2.88dsf/debian/changelog --- sysvinit-2.88dsf/debian/changelog 2015-06-12 16:12:13.000000000 +0000 +++ sysvinit-2.88dsf/debian/changelog 2016-02-17 04:49:46.000000000 +0000 @@ -1,3 +1,9 @@ +sysvinit (2.88dsf-41ubuntu6.3) trusty; urgency=medium + + * Adjust sampling_down_factor to 100 on ppc64 kernels (LP: #1483586) + + -- Adam Conrad Thu, 15 Oct 2015 20:43:12 -0600 + sysvinit (2.88dsf-41ubuntu6.2) trusty; urgency=medium * Break the dependency loop with upstart by dropping the upstart dependency diff -Nru sysvinit-2.88dsf/debian/src/initscripts/etc/init.d/ondemand sysvinit-2.88dsf/debian/src/initscripts/etc/init.d/ondemand --- sysvinit-2.88dsf/debian/src/initscripts/etc/init.d/ondemand 2015-03-13 15:02:09.000000000 +0000 +++ sysvinit-2.88dsf/debian/src/initscripts/etc/init.d/ondemand 2016-02-17 04:49:26.000000000 +0000 @@ -17,6 +17,7 @@ . /lib/lsb/init-functions AVAILABLE="/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors" +DOWN_FACTOR="/sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor" case "$1" in start) @@ -34,6 +35,11 @@ ;; *ondemand*) GOVERNOR="ondemand" + case $(uname -m) in + ppc64*) + SAMPLING=100 + ;; + esac break ;; *powersave*) @@ -50,6 +56,9 @@ [ -f $CPUFREQ ] || continue echo -n $GOVERNOR > $CPUFREQ done + if [ -n "$SAMPLING" ] && [ -f $DOWN_FACTOR ]; then + echo -n $SAMPLING > $DOWN_FACTOR + fi ;; restart|reload|force-reload) echo "Error: argument '$1' not supported" >&2