Debian Codegraph @

etc/turboboost.sh

raw symbols SCIP
1 #!/bin/sh
2 set -eu
3
4 usage() {
5 echo "USAGE: $0 <on|off>" ; exit 111
6 }
7
8 if [ "$#" -eq 0 ]; then
9 usage
10 fi
11
12 case $1 in
13 on) echo 0 > /sys/devices/system/cpu/intel_pstate/no_turbo ;;
14 off) echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo ;;
15 *) usage
16 esac