diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-02-04 05:46:05 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-02-04 05:46:05 +0000 |
commit | 4287cbb5774e50a32c29014780de9c0517371d74 (patch) | |
tree | 10b21761f89d6cb59eb7554a5b60295ae46656ae /sys/kern/kern_mtxpool.c | |
parent | 58d87c5c98d9ad8390efa179ce5713e9b63ec640 (diff) | |
download | FreeBSD-src-4287cbb5774e50a32c29014780de9c0517371d74.zip FreeBSD-src-4287cbb5774e50a32c29014780de9c0517371d74.tar.gz |
A variety of further cleanups to ttyinfo():
- Rename temporary variable names ("tmp", "tmp2") to more informative
names ("load", "pctcpu", "rss", ...)
- Unclutter indentation and return paths: rather than lots of nested
ifs, simply return earlier if it's not going to work out. Simplify
general structure and avoid "deep" code.
- Comment on the thread/process selection and locking.
- Correct handling of "running"/"runnable" states, avoid "unknown"
that people were seeing for running processes. This was due to
a misunderstanding of the more complex state machine / inhibitors
behavior of KSE.
- Do perform ttyinfo() printing on KSE (P_SA) processes, it seems
generally to work.
While I initially attempted to formulate this as two commits (one
layout, the other content), I concluded that the layout changes were
really structural changes.
Many elements submitted by: bde
Diffstat (limited to 'sys/kern/kern_mtxpool.c')
0 files changed, 0 insertions, 0 deletions