Browse Source

Make sure CPU ID works for all POWER_10 conditions

tags/v0.3.27
Chip Kerchner 2 years ago
parent
commit
ac6b4b7aa4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      driver/others/dynamic_power.c

+ 1
- 1
driver/others/dynamic_power.c View File

@@ -69,7 +69,7 @@ static int cpuid(void)
else if (arch == POWER_9) return CPU_POWER9;
#endif
#ifdef POWER_10
else if (arch == POWER_10) return CPU_POWER10;
else if (arch >= POWER_10) return CPU_POWER10;
#endif
return CPU_UNKNOWN;
}


Loading…
Cancel
Save