Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist/lib/libdtrace/common make aggregate...
details: https://anonhg.NetBSD.org/src/rev/0cab66173dd1
branches: trunk
changeset: 770510:0cab66173dd1
user: yamt <yamt%NetBSD.org@localhost>
date: Wed Oct 19 11:03:52 2011 +0000
description:
make aggregate work for > 1 cpus
diffstat:
external/cddl/osnet/dist/lib/libdtrace/common/dt_subr.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diffs (17 lines):
diff -r 0765acf8fd07 -r 0cab66173dd1 external/cddl/osnet/dist/lib/libdtrace/common/dt_subr.c
--- a/external/cddl/osnet/dist/lib/libdtrace/common/dt_subr.c Wed Oct 19 11:02:08 2011 +0000
+++ b/external/cddl/osnet/dist/lib/libdtrace/common/dt_subr.c Wed Oct 19 11:03:52 2011 +0000
@@ -505,12 +505,7 @@
#if defined(sun)
return (p_online(cpu, P_STATUS));
#else
- int maxid = 0;
- size_t len = sizeof(maxid);
- if (sysctlbyname("kern.smp.maxid", &maxid, &len, NULL, 0) != 0)
- return (cpu == 0 ? 1 : -1);
- else
- return (cpu <= maxid ? 1 : -1);
+ return 1;
#endif
}
Home |
Main Index |
Thread Index |
Old Index