Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Comment in new cp_id implementation was wrong since...
details: https://anonhg.NetBSD.org/src/rev/ce3cc07d66b2
branches: trunk
changeset: 582131:ce3cc07d66b2
user: atatat <atatat%NetBSD.org@localhost>
date: Fri Jun 17 23:53:21 2005 +0000
description:
Comment in new cp_id implementation was wrong since I abandoned
rewriting it in favor of some testing and then never got back to it.
It's better now.
diffstat:
sys/kern/init_sysctl.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diffs (34 lines):
diff -r 3e01b93cf7e6 -r ce3cc07d66b2 sys/kern/init_sysctl.c
--- a/sys/kern/init_sysctl.c Fri Jun 17 22:39:08 2005 +0000
+++ b/sys/kern/init_sysctl.c Fri Jun 17 23:53:21 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: init_sysctl.c,v 1.45 2005/06/16 14:55:58 christos Exp $ */
+/* $NetBSD: init_sysctl.c,v 1.46 2005/06/17 23:53:21 atatat Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.45 2005/06/16 14:55:58 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_sysctl.c,v 1.46 2005/06/17 23:53:21 atatat Exp $");
#include "opt_sysv.h"
#include "opt_multiprocessor.h"
@@ -2477,12 +2477,9 @@
CPU_INFO_ITERATOR cii;
/*
- * if you specifically pass a buffer that is the size of a single cpuid
- * sum, or if you are probing for the size, you get the "sum"
- * of cp_time (and the size thereof) across all processors.
- *
- * alternately, you can pass an additional mib number and get
- * cp_time for that particular processor.
+ * here you may either retrieve a single cpu id or the whole
+ * set. the size you get back when probing depends on what
+ * you ask for.
*/
switch (namelen) {
case 0:
Home |
Main Index |
Thread Index |
Old Index