summaryrefslogtreecommitdiff
path: root/src/arch/x86
diff options
context:
space:
mode:
authorFabio Aiuto <fabioaiuto83@gmail.com>2022-09-23 16:51:34 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-09-29 16:47:04 +0000
commit45aae7f10ff2b2fc6a947eb2667eb658188d3b52 (patch)
tree49376ba656bb7211049a97dcd0e3d5dbf8403923 /src/arch/x86
parentc5573d62b7b5179cb48144b71f91955464873e6e (diff)
treewide: use is_enabled_cpu() on cycles over device list
use is_enabled_cpu() on cycles over device list to check whether the current device is enabled cpu. TEST: compile test and qemu run successfully with coreinfo payload Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com> Change-Id: If64bd18f006b6f5fecef4f606c1df7d3a4d42883 Reviewed-on: https://review.coreboot.org/c/coreboot/+/67797 Reviewed-by: Tim Wawrzynczak <inforichland@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/arch/x86')
-rw-r--r--src/arch/x86/mpspec.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/arch/x86/mpspec.c b/src/arch/x86/mpspec.c
index 93058f1db2..2e65e252d5 100644
--- a/src/arch/x86/mpspec.c
+++ b/src/arch/x86/mpspec.c
@@ -160,12 +160,7 @@ void smp_write_processors(struct mp_config_table *mc)
for (order_id = 0; order_id < 256; order_id++) {
for (cpu = all_devices; cpu; cpu = cpu->next) {
unsigned long cpu_flag;
- if ((cpu->path.type != DEVICE_PATH_APIC) ||
- (cpu->bus->dev->path.type !=
- DEVICE_PATH_CPU_CLUSTER))
- continue;
-
- if (!cpu->enabled)
+ if (!is_enabled_cpu(cpu))
continue;
cpu_flag = MPC_CPU_ENABLED;