From owner-svn-src-all@FreeBSD.ORG Wed Nov 19 21:12:26 2008 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 745BD1065674; Wed, 19 Nov 2008 21:12:26 +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 64E138FC1A; Wed, 19 Nov 2008 21:12:26 +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 mAJLCQKE028653; Wed, 19 Nov 2008 21:12:26 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mAJLCQiA028652; Wed, 19 Nov 2008 21:12:26 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <200811192112.mAJLCQiA028652@svn.freebsd.org> From: Ed Schouten Date: Wed, 19 Nov 2008 21:12:26 +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: r185107 - head/sys/dev/dcons X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2008 21:12:26 -0000 Author: ed Date: Wed Nov 19 21:12:26 2008 New Revision: 185107 URL: http://svn.freebsd.org/changeset/base/185107 Log: Also make dcons(4) use MPSAFE callouts. The callout locks the TTY layer the way it should, so there is no reason why its callout shouldn't set this flag. Modified: head/sys/dev/dcons/dcons_os.c Modified: head/sys/dev/dcons/dcons_os.c ============================================================================== --- head/sys/dev/dcons/dcons_os.c Wed Nov 19 21:07:33 2008 (r185106) +++ head/sys/dev/dcons/dcons_os.c Wed Nov 19 21:12:26 2008 (r185107) @@ -369,7 +369,7 @@ dcons_attach(void) dcons_attach_port(DCONS_CON, "dcons", 0); dcons_attach_port(DCONS_GDB, "dgdb", DC_GDB); - callout_init(&dcons_callout, 0); + callout_init(&dcons_callout, CALLOUT_MPSAFE); polltime = hz / poll_hz; if (polltime < 1) polltime = 1;