From owner-svn-src-head@FreeBSD.ORG Fri Jun 5 15:31:38 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8EB7910656ED; Fri, 5 Jun 2009 15:31:38 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 7CE3B8FC1D; Fri, 5 Jun 2009 15:31:38 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n55FVcen029960; Fri, 5 Jun 2009 15:31:38 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n55FVcf1029956; Fri, 5 Jun 2009 15:31:38 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <200906051531.n55FVcf1029956@svn.freebsd.org> From: Ed Schouten Date: Fri, 5 Jun 2009 15:31:38 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r193513 - in head: . sys/conf sys/kern sys/sys X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2009 15:31:39 -0000 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. *