Skip to content

Commit

Permalink
Update cpuid.c
Browse files Browse the repository at this point in the history
  • Loading branch information
sbski committed Feb 5, 2021
1 parent 0d0aab9 commit 7a025c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cpuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ enum ryzen_family cpuid_get_family()
family = ((regs[0] >> 8) & 0xf) + ((regs[0] >> 20) & 0xff);
model = ((regs[0] >> 4) & 0xf) | ((regs[0] >> 12) & 0xf0);

if (family != 0x17 || family != 0x19) {
if (family != 0x17 && family != 0x19) {
printf("Not Zen processor, won't work\n");
return FAM_UNKNOWN;
}
Expand Down

0 comments on commit 7a025c5

Please sign in to comment.