From d088b36adfc3a408db310d0043b9cadf09893e3b Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Mon, 29 Apr 2019 14:29:17 +0000 Subject: Remove perf workaround. It seems TK1s do not require perf workaround (and I do have a vague memory that it was added for benefit of TX1s running 3.10 kernels), so remove it. Change-Id: Id546e14a589cdd9644addbd412badcc18f11c922 --- prepare-board.sh | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'prepare-board.sh') diff --git a/prepare-board.sh b/prepare-board.sh index 3c3bdca..8c0d134 100755 --- a/prepare-board.sh +++ b/prepare-board.sh @@ -240,36 +240,6 @@ configure_services() fi } -######################################## -# 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 @@ -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}" -- cgit v1.2.3