We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea6e1e9 commit 8f6dad8Copy full SHA for 8f6dad8
backend/sh_tools.sh
@@ -136,16 +136,15 @@ function set_cpu_boost()
136
{
137
boost=$1
138
boost_path="/sys/devices/system/cpu/cpufreq/boost"
139
- amd_pstate_path="/sys/devices/system/cpu/amd_pstate/status"
+ amd_pstate_path="/sys/devices/system/cpu/amd_pstate/status"\
140
+
141
+ if [ -f "${amd_pstate_path}" ]; then
142
+ echo "passive" > "${amd_pstate_path}"
143
+ fi
144
145
if (($boost == 1)); then
146
echo 1 > "${boost_path}"
- if [ -f "${amd_pstate_path}" ]; then
- echo "active" > "${amd_pstate_path}"
- fi
147
else
- echo "passive" > "${amd_pstate_path}"
148
149
150
echo 0 > "${boost_path}"
151
fi
0 commit comments