diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2019-04-29 14:29:17 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2019-04-29 14:29:17 +0000 |
commit | d088b36adfc3a408db310d0043b9cadf09893e3b (patch) | |
tree | 3cd913850ce048e2796bc7b6be8409ebc458578b /prepare-board.sh | |
parent | 91d8c61f46939807adf5719f6be720786a1617bc (diff) |
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
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}" |