Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jun 2009 15:31:38 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r193513 - in head: . sys/conf sys/kern sys/sys
Message-ID:  <200906051531.n55FVcf1029956@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Fri Jun  5 15:31:38 2009
New Revision: 193513
URL: http://svn.freebsd.org/changeset/base/193513

Log:
  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.

Deleted:
  head/sys/kern/subr_clist.c
  head/sys/sys/clist.h
Modified:
  head/ObsoleteFiles.inc
  head/sys/conf/files
  head/sys/sys/param.h

Modified: head/ObsoleteFiles.inc
==============================================================================
--- 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
+OLD_FILES+=usr/include/sys/clist.h
 # 20090602: removal of window(1)
 OLD_FILES+=usr/bin/window
 OLD_FILES+=usr/share/man/man1/window.1.gz

Modified: head/sys/conf/files
==============================================================================
--- 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
 kern/subr_blist.c		standard
 kern/subr_bus.c			standard
 kern/subr_bufring.c		standard
-kern/subr_clist.c		standard
 kern/subr_clock.c		standard
 kern/subr_devstat.c		standard
 kern/subr_disk.c		standard

Modified: head/sys/sys/param.h
==============================================================================
--- 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.
  *



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906051531.n55FVcf1029956>