Skip to content

Commit ac6b4b7

Browse files
committed
Make sure CPU ID works for all POWER_10 conditions
1 parent 22b487b commit ac6b4b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/others/dynamic_power.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static int cpuid(void)
6969
else if (arch == POWER_9) return CPU_POWER9;
7070
#endif
7171
#ifdef POWER_10
72-
else if (arch == POWER_10) return CPU_POWER10;
72+
else if (arch >= POWER_10) return CPU_POWER10;
7373
#endif
7474
return CPU_UNKNOWN;
7575
}

0 commit comments

Comments
 (0)