svn commit: r193513 - in head: . sys/conf sys/kern sys/sys
ed at FreeBSD.org
Fri Jun 5 15:31:39 UTC 2009
Date: Fri Jun 5 15:31:38 2009
New Revision: 193513
Remove clists from the kernel.
Clists were originally used by the TTY layer as a text buffer interface.
The advantage of clists were that it would allocate a small set of
additional buffers that could be shared between TTYs when needed. In
the modern days we can just allocate some more KBs of memory to keep the
TTYs satisfied. The global cfreelist also requires synchronisation,
which may not be useful when trying to improve scalability.
The MPSAFE TTY layer uses its own text buffers (ttyinq and ttyoutq). We
had a small amount of drivers in the tree that still uses clists, like
the old USB stack and some keyboard drivers. With the old USB stack gone
and the keyboard drivers changed to use a circular buffer, we can safely
remove clists from the kernel.
--- head/ObsoleteFiles.inc Fri Jun 5 15:19:05 2009 (r193512)
+++ head/ObsoleteFiles.inc Fri Jun 5 15:31:38 2009 (r193513)
@@ -14,6 +14,8 @@
# The file is partitioned: OLD_FILES first, then OLD_LIBS and OLD_DIRS last.
+# 20090605: removal of clists
# 20090602: removal of window(1)
--- head/sys/conf/files Fri Jun 5 15:19:05 2009 (r193512)
+++ head/sys/conf/files Fri Jun 5 15:31:38 2009 (r193513)
@@ -1969,7 +1969,6 @@ kern/subr_autoconf.c standard
--- head/sys/sys/param.h Fri Jun 5 15:19:05 2009 (r193512)
+++ head/sys/sys/param.h Fri Jun 5 15:31:38 2009 (r193513)
@@ -196,11 +196,6 @@
#define NODEV (dev_t)(-1) /* non-existent device */
-#define CBLOCK 128 /* Clist block size, must be a power of 2. */
- /* Data chars/clist. */
-#define CBSIZE (CBLOCK - sizeof(struct cblock *))
-#define CROUND (CBLOCK - 1) /* Clist rounding. */
* File system parameters and macros.
More information about the svn-src-all