Module Name: src
Committed By: mlelstv
Date: Fri Oct 14 11:33:08 UTC 2016
Modified Files:
src/sys/arch/sparc64/dev: auxio.c
Log Message:
the mutex is also used for fdc attachment, so initialize it also
for a kernel without BLINK option.
To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/sparc64/dev/auxio.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sparc64/dev/auxio.c
diff -u src/sys/arch/sparc64/dev/auxio.c:1.25 src/sys/arch/sparc64/dev/auxio.c:1.26
--- src/sys/arch/sparc64/dev/auxio.c:1.25 Tue Oct 6 16:40:36 2015
+++ src/sys/arch/sparc64/dev/auxio.c Fri Oct 14 11:33:08 2016
@@ -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 @@ auxio_blink(void *x)
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");
}