summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-04-27 21:59:43 +0000
committerjhb <jhb@FreeBSD.org>2006-04-27 21:59:43 +0000
commit043679e436c1f9fee886233ecef16c2120f146ca (patch)
treec8cf75d1c6dd01e94b815df7be9bc1c2450468ee /sys
parent64a2bdc22720e0c43cf2b27b70aeaf3920800b05 (diff)
downloadFreeBSD-src-043679e436c1f9fee886233ecef16c2120f146ca.zip
FreeBSD-src-043679e436c1f9fee886233ecef16c2120f146ca.tar.gz
Drop locking comments. ddb functions should never use locking anyway and
no other ddb functions try to annotate what locking would otherwise be appropriate in comments. Prodded by: bde
Diffstat (limited to 'sys')
-rw-r--r--sys/ddb/db_ps.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/ddb/db_ps.c b/sys/ddb/db_ps.c
index f12ccf4..10d610d 100644
--- a/sys/ddb/db_ps.c
+++ b/sys/ddb/db_ps.c
@@ -35,8 +35,6 @@ __FBSDID("$FreeBSD$");
#include <sys/jail.h>
#include <sys/kdb.h>
#include <sys/linker_set.h>
-#include <sys/lock.h>
-#include <sys/mutex.h>
#include <sys/proc.h>
#include <sys/sysent.h>
#include <sys/cons.h>
@@ -91,7 +89,6 @@ db_ps(db_expr_t addr, boolean_t hasaddr, db_expr_t count, char *modif)
np = nprocs;
quit = 0;
- /* sx_slock(&allproc_lock); */
if (!LIST_EMPTY(&allproc))
p = LIST_FIRST(&allproc);
else
@@ -108,7 +105,6 @@ db_ps(db_expr_t addr, boolean_t hasaddr, db_expr_t count, char *modif)
db_printf("oops, ran out of processes early!\n");
break;
}
- /* PROC_LOCK(p); */
pp = p->p_pptr;
if (pp == NULL)
pp = p;
@@ -209,13 +205,11 @@ db_ps(db_expr_t addr, boolean_t hasaddr, db_expr_t count, char *modif)
if (quit)
break;
}
- /* PROC_UNLOCK(p); */
p = LIST_NEXT(p, p_list);
if (p == NULL && np > 0)
p = LIST_FIRST(&zombproc);
}
- /* sx_sunlock(&allproc_lock); */
}
static void
OpenPOWER on IntegriCloud