]>
git.ipfire.org Git - ipfire-2.x.git/blob - src/initscripts/system/smt
2 ########################################################################
3 # Begin $rc_base/init.d/smt
4 ########################################################################
9 eval $
(/usr
/local
/bin
/readhash
/var
/ipfire
/main
/security
)
13 # Nothing to do here when SMT is forced on
14 if [ "${ENABLE_SMT}" = "on" ]; then
18 # Nothing to do if this processor is not vulnerable
20 if [ -r "/sys/devices/system/cpu/vulnerabilities/mds" ]; then
21 if [ "$(</sys/devices/system/cpu/vulnerabilities/mds)" = "Not affected" ]; then
25 # Disable SMT when supported and enabled
26 if [ "$(</sys/devices/system/cpu/smt/control)" = "on" ]; then
27 boot_mesg
"Disabling Simultaneous Multi-Threading (SMT)..."
28 echo "forceoff" > /sys
/devices
/system
/cpu
/smt
/control
35 echo "Usage: ${0} {start}"
40 # End $rc_base/init.d/smt