amd families fix

amd families are reported by parse_cpu_details() in decimal
This commit is contained in:
Rob Gill 2018-05-27 08:58:38 +10:00 committed by GitHub
parent 2475482a98
commit 060e63d615
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -490,10 +490,10 @@ is_cpu_ssb_free()
fi
fi
if is_amd; then
if [ "$cpu_family" = "0x12" ] || \
[ "$cpu_family" = "0x11" ] || \
[ "$cpu_family" = "0x10" ] || \
[ "$cpu_family" = "0xf" ]; then
if [ "$cpu_family" = "18" ] || \ # family 0x12
[ "$cpu_family" = "17" ] || \ # family 0x11
[ "$cpu_family" = "16" ] || \ # family 0x10
[ "$cpu_family" = "15" ]; then # family 0xf
return 0
fi
fi