summaryrefslogtreecommitdiff
path: root/src/mainboard/prodrive/hermes/mainboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/prodrive/hermes/mainboard.c')
-rw-r--r--src/mainboard/prodrive/hermes/mainboard.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mainboard/prodrive/hermes/mainboard.c b/src/mainboard/prodrive/hermes/mainboard.c
index 2f0de61843..a713342d96 100644
--- a/src/mainboard/prodrive/hermes/mainboard.c
+++ b/src/mainboard/prodrive/hermes/mainboard.c
@@ -104,11 +104,7 @@ static void update_board_layout(void)
/* Update CPU fields */
for (struct device *cpu = all_devices; cpu; cpu = cpu->next) {
- if (cpu->path.type != DEVICE_PATH_APIC)
- continue;
- if (cpu->bus->dev->path.type != DEVICE_PATH_CPU_CLUSTER)
- continue;
- if (!cpu->enabled)
+ if (!is_enabled_cpu(cpu))
continue;
layout.cpu_count++;
if (!layout.cpu_name[0])