Merge pull request #261 from jonathan-teh/amd-family-16h

Add early microcode support for AMD family 16h
master
Harald Hoyer 2017-08-02 11:31:19 +02:00 committed by GitHub
commit 98663fcaac
1 changed files with 4 additions and 2 deletions

View File

@ -661,8 +661,10 @@ get_ucode_file ()
local stepping=`grep -E "stepping" /proc/cpuinfo | head -1 | sed s/.*:\ //`

if [[ "$(get_cpu_vendor)" == "AMD" ]]; then
# If family greater or equal than 0x15
if [[ $family -ge 21 ]]; then
# If family greater than or equal to 0x16
if [[ $family -ge 22 ]]; then
printf "microcode_amd_fam16h.bin"
elif [[ $family -eq 21 ]]; then
printf "microcode_amd_fam15h.bin"
else
printf "microcode_amd.bin"