Parse CPU speed from /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq instead of /proc/cpuinfo. Fixes crashes on AMD or ARM processors like the Raspberry Pi.