Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/dev the mutex is also used for fdc attachme...
details: https://anonhg.NetBSD.org/src/rev/4a949f9cc75f
branches: trunk
changeset: 348299:4a949f9cc75f
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Fri Oct 14 11:33:08 2016 +0000
description:
the mutex is also used for fdc attachment, so initialize it also
for a kernel without BLINK option.
diffstat:
sys/arch/sparc64/dev/auxio.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (38 lines):
diff -r 3f38d0196c76 -r 4a949f9cc75f sys/arch/sparc64/dev/auxio.c
--- a/sys/arch/sparc64/dev/auxio.c Fri Oct 14 11:11:01 2016 +0000
+++ b/sys/arch/sparc64/dev/auxio.c Fri Oct 14 11:33:08 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: auxio.c,v 1.25 2015/10/06 16:40:36 martin Exp $ */
+/* $NetBSD: auxio.c,v 1.26 2016/10/14 11:33:08 mlelstv Exp $ */
/*
* Copyright (c) 2000, 2001, 2015 Matthew R. Green
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: auxio.c,v 1.25 2015/10/06 16:40:36 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: auxio.c,v 1.26 2016/10/14 11:33:08 mlelstv Exp $");
#include "opt_auxio.h"
@@ -120,17 +120,17 @@
void
auxio_attach_common(struct auxio_softc *sc)
{
-#ifdef BLINK
static int do_once = 1;
/* only start one blinker */
if (do_once) {
mutex_init(&sc->sc_lock, MUTEX_DEFAULT, IPL_HIGH);
+#ifdef BLINK
callout_init(&blink_ch, CALLOUT_MPSAFE);
auxio_blink(sc);
+#endif
do_once = 0;
}
-#endif
printf("\n");
}
Home |
Main Index |
Thread Index |
Old Index