diff options
author | jhb <jhb@FreeBSD.org> | 2010-06-11 18:46:34 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2010-06-11 18:46:34 +0000 |
commit | 9b74a62d735d756ad10a232bb6b9bf1d5803a473 (patch) | |
tree | 6823a317037813f606c0b52d6cfa18c924eb9a1d /sys/amd64/acpica | |
parent | 4945d8d26d66a088d72189bf54f9678981e78766 (diff) | |
download | FreeBSD-src-9b74a62d735d756ad10a232bb6b9bf1d5803a473.zip FreeBSD-src-9b74a62d735d756ad10a232bb6b9bf1d5803a473.tar.gz |
Update several places that iterate over CPUs to use CPU_FOREACH().
Diffstat (limited to 'sys/amd64/acpica')
-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]; |