Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/wscons Run callout without kernel lock, the softint ...



details:   https://anonhg.NetBSD.org/src/rev/a91cf0897711
branches:  trunk
changeset: 1016435:a91cf0897711
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sat Nov 21 11:23:22 2020 +0000

description:
Run callout without kernel lock, the softint itself is still protected.

diffstat:

 sys/dev/wscons/wsdisplay_vcons.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6809190dac1c -r a91cf0897711 sys/dev/wscons/wsdisplay_vcons.c
--- a/sys/dev/wscons/wsdisplay_vcons.c  Sat Nov 21 10:56:17 2020 +0000
+++ b/sys/dev/wscons/wsdisplay_vcons.c  Sat Nov 21 11:23:22 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wsdisplay_vcons.c,v 1.40 2019/07/31 14:29:54 rin Exp $ */
+/*     $NetBSD: wsdisplay_vcons.c,v 1.41 2020/11/21 11:23:22 mlelstv Exp $ */
 
 /*-
  * Copyright (c) 2005, 2006 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsdisplay_vcons.c,v 1.40 2019/07/31 14:29:54 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsdisplay_vcons.c,v 1.41 2020/11/21 11:23:22 mlelstv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -156,7 +156,7 @@
        vd->wanted = NULL;
        vd->currenttype = def;
        vd->defaulttype = def;
-       callout_init(&vd->switch_callout, 0);
+       callout_init(&vd->switch_callout, CALLOUT_MPSAFE);
        callout_setfunc(&vd->switch_callout, vcons_do_switch, vd);
 #ifdef VCONS_DRAW_INTR
        vd->cells = 0;



Home | Main Index | Thread Index | Old Index