svn commit: r185107 - head/sys/dev/dcons

Ed Schouten ed at FreeBSD.org
Wed Nov 19 13:12:26 PST 2008


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;


More information about the svn-src-all mailing list