diff options
Diffstat (limited to 'sys/amd64/acpica/madt.c')
-rw-r--r-- | sys/amd64/acpica/madt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/amd64/acpica/madt.c b/sys/amd64/acpica/madt.c index a409682..90ffd64 100644 --- a/sys/amd64/acpica/madt.c +++ b/sys/amd64/acpica/madt.c @@ -557,9 +557,7 @@ madt_set_ids(void *dummy) if (madt == NULL) return; - for (i = 0; i < MAXCPU; i++) { - if (CPU_ABSENT(i)) - continue; + CPU_FOREACH(i) { pc = pcpu_find(i); KASSERT(pc != NULL, ("no pcpu data for CPU %u", i)); la = &lapics[pc->pc_apic_id]; |