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/compat/linprocfs | |
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/compat/linprocfs')
-rw-r--r-- | sys/compat/linprocfs/linprocfs.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c index 58d897e..974f825 100644 --- a/sys/compat/linprocfs/linprocfs.c +++ b/sys/compat/linprocfs/linprocfs.c @@ -468,9 +468,7 @@ linprocfs_dostat(PFS_FILL_ARGS) T2J(cp_time[CP_NICE]), T2J(cp_time[CP_SYS] /*+ cp_time[CP_INTR]*/), T2J(cp_time[CP_IDLE])); - for (i = 0; i <= mp_maxid; ++i) { - if (CPU_ABSENT(i)) - continue; + CPU_FOREACH(i) { pcpu = pcpu_find(i); cp = pcpu->pc_cp_time; sbuf_printf(sb, "cpu%d %ld %ld %ld %ld\n", i, |