Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterSuh-Q3 committed Jul 17, 2023
1 parent d4c1c27 commit 18a2105
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpufreq-scaler/src/rescaler.sh
Expand Up @@ -17,3 +17,5 @@ if [ "$governor" != "userspace" ]; then
echo "userspace" >/sys/devices/system/cpu/cpu"${i}"/cpufreq/scaling_governor
done
fi

rm -f /usr/sbin/stopscale
3 changes: 3 additions & 0 deletions cpufreq-scaler/src/scaler.sh
Expand Up @@ -99,6 +99,9 @@ function main {
# Deamonize the main function...
while true; do

if [ -f /usr/sbin/stopscale ]; then
exit 0
fi
# Get cpu cores count minus 1, to allow maping from 0
cpucorecount=$(cat /proc/cpuinfo | grep processor | wc -l)
cpucorecount=$((cpucorecount - 1))
Expand Down
2 changes: 2 additions & 0 deletions cpufreq-scaler/src/unscaler.sh
Expand Up @@ -17,3 +17,5 @@ if [ "$governor" != "performance" ]; then
echo "performance" >/sys/devices/system/cpu/cpu"${i}"/cpufreq/scaling_governor
done
fi

touch /usr/sbin/stopscale

0 comments on commit 18a2105

Please sign in to comment.