Issue reported via Slack about parsing the output of cpuinfo, so... Rather than relying on the existence and output of dmidecode and /proc/cpuinfo, it actually makes more sense to read /sys/devices/system/cpu/smt/active, which is old, simple, and widely available.
I think it exists everywhere on kernel >2.6.
Issue reported via Slack about parsing the output of cpuinfo, so... Rather than relying on the existence and output of dmidecode and /proc/cpuinfo, it actually makes more sense to read /sys/devices/system/cpu/smt/active, which is old, simple, and widely available. I think it exists everywhere on kernel >2.6.
Fixed (assumed) typo about AMT -> SMT.