Skip to content

Commit 7dcb2d6

Browse files
committed
Have POWER7 return arch=POWER6.
1 parent c8882bd commit 7dcb2d6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

driver/others/dynamic_power.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ static int cpuid(void)
5252
#ifdef POWER_6
5353
if (arch == POWER_6) return CPU_POWER6;
5454
#endif
55+
#ifdef POWER_7
56+
else if (arch == POWER_7) return CPU_POWER6;
57+
#endif
5558
#ifdef POWER_8
5659
else if (arch == POWER_8) return CPU_POWER8;
5760
#endif

0 commit comments

Comments
 (0)