diff options
Diffstat (limited to 'prepare-board.sh')
-rwxr-xr-x | prepare-board.sh | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/prepare-board.sh b/prepare-board.sh index 3c3bdca..8c0d134 100755 --- a/prepare-board.sh +++ b/prepare-board.sh @@ -241,36 +241,6 @@ configure_services() } ######################################## -# configure_perf_hack and helpers - -configure_perf_hack() -{ - local op=$1 - local conf_file="$CONFS/perf_hack-$BOARD_TYPE" - local pidfile="${RESTORE_LOC}/perf_hack.pid" - local pid - - if [ ! -f "$conf_file" ]; then - return - fi - - if [ -f "$pidfile" ]; then - pid=$(cat "$pidfile") - kill "$pid" || true - verbose "Stopped perf workaround on PID $pid" - rm -f "$pidfile" - fi - - if [ "$op" = "start" ]; then - taskset -c 0 perf record -q -N $(cat $conf_file) -o /dev/null -- sleep 2000d 1>&- 2>&- & - pid=$! - disown $pid - echo "$pid" >> "$pidfile" - verbose "Starting perf workaround as PID $pid" - fi -} - -######################################## # configure_cpu_freq and helpers # sets CPU frequency scaling range and governor calc_freq() @@ -421,7 +391,6 @@ configure_common() configure_services "$op" configure_ntp "$op" configure_cpufreq "$op" - configure_perf_hack "$op" if [ "$op" = "stop" ]; then rm -f "$RESTORE_LOC/board_type" rmdir "${RESTORE_LOC}" |