From 66dd06f584f5847ca4a99f7b0ee525df631a236f Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 24 Sep 2013 20:12:41 +0200 Subject: [PATCH] linux: fix setting up ondemand up_threshold value Signed-off-by: Stephan Raue --- packages/linux/init.d/02_cpupower | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/linux/init.d/02_cpupower b/packages/linux/init.d/02_cpupower index 746e182608..aa3dca73d3 100644 --- a/packages/linux/init.d/02_cpupower +++ b/packages/linux/init.d/02_cpupower @@ -28,16 +28,17 @@ progress "set cpu's to full power" printf "performance" > $i done 2>/dev/null -progress "set onedemand threshold" - if [ -f /sys/devices/system/cpu/cpufreq/ondemand/up_threshold ]; then - echo 50 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold - fi - ( usleep 40000000 progress "set cpu's to 'ondemand'" for i in /sys/devices/system/cpu/*/cpufreq/scaling_governor; do printf "ondemand" > $i done 2>/dev/null + + progress "set onedemand threshold" + if [ -f /sys/devices/system/cpu/cpufreq/ondemand/up_threshold ]; then + echo 50 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold + fi + )&