summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/arm/arm/identcpu-v6.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/sys/arm/arm/identcpu-v6.c b/sys/arm/arm/identcpu-v6.c
index e0db741..4c4ea86 100644
--- a/sys/arm/arm/identcpu-v6.c
+++ b/sys/arm/arm/identcpu-v6.c
@@ -269,15 +269,13 @@ identify_arm_cpu(void)
for(i = 0; i < nitems(cpu_names); i++) {
if (cpu_names[i].implementer == cpuinfo.implementer &&
cpu_names[i].part_number == cpuinfo.part_number) {
- if (i == 0) {
- memset(cpu_model, 0, sizeof(cpu_model));
- snprintf(cpu_model, sizeof(cpu_model) - 1,
- "CPU: %s %s r%dp%d (ECO: 0x%08X)\n",
- cpu_names[i].impl_name, cpu_names[i].core_name,
- cpuinfo.revision, cpuinfo.patch,
- cpuinfo.midr != cpuinfo.revidr ?
- cpuinfo.revidr : 0);
- }
+ memset(cpu_model, 0, sizeof(cpu_model));
+ snprintf(cpu_model, sizeof(cpu_model) - 1,
+ "CPU: %s %s r%dp%d (ECO: 0x%08X)\n",
+ cpu_names[i].impl_name, cpu_names[i].core_name,
+ cpuinfo.revision, cpuinfo.patch,
+ cpuinfo.midr != cpuinfo.revidr ?
+ cpuinfo.revidr : 0);
printf("CPU: %s %s r%dp%d (ECO: 0x%08X)\n",
cpu_names[i].impl_name, cpu_names[i].core_name,
cpuinfo.revision, cpuinfo.patch,
OpenPOWER on IntegriCloud