aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/vmmeter.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2011-01-09 12:50:44 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2011-01-09 12:50:44 +0000
commit50a57dfbec5800b586e5ee860d797818d54dfb44 (patch)
tree185b41ec088e628403e26ab0d571fc79249b094f /sys/sys/vmmeter.h
parentda2fcff746a151ab3ea26c237953a90236cfc176 (diff)
downloadsrc-50a57dfbec5800b586e5ee860d797818d54dfb44.tar.gz
src-50a57dfbec5800b586e5ee860d797818d54dfb44.zip
Move repeated MAXSLP definition from machine/vmparam.h to sys/vmmeter.h.
Update the outdated comments describing MAXSLP and the process selection algorithm for swap out. Comments wording and reviewed by: alc
Notes
Notes: svn path=/head/; revision=217192
Diffstat (limited to 'sys/sys/vmmeter.h')
-rw-r--r--sys/sys/vmmeter.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sys/vmmeter.h b/sys/sys/vmmeter.h
index 9d74611a50a2..99531a6c84a2 100644
--- a/sys/sys/vmmeter.h
+++ b/sys/sys/vmmeter.h
@@ -34,6 +34,12 @@
#define _SYS_VMMETER_H_
/*
+ * This value is used by ps(1) to change sleep state flag from 'S' to
+ * 'I' and by the sched process to set the alarm clock.
+ */
+#define MAXSLP 20
+
+/*
* System wide statistics counters.
* Locking:
* a - locked by atomic operations