This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
HYPERTHREADING=1 | |
function toggleHyperThreading() { | |
for CPU in /sys/devices/system/cpu/cpu[0-9]*; do | |
CPUID=`basename $CPU | cut -b4-` | |
echo -en "CPU: $CPUID\t" | |
[ -e $CPU/online ] && echo "1" > $CPU/online | |
THREAD1=`cat $CPU/topology/thread_siblings_list | cut -f1 -d,` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# turn on fan for safety | |
echo "Enabling fan for safety..." | |
if [ ! -w /sys/kernel/debug/tegra_fan/target_pwm ] ; then | |
echo "Cannot set fan -- exiting..." | |
fi | |
echo 255 > /sys/kernel/debug/tegra_fan/target_pwm | |
echo 0 > /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/enable |
NewerOlder