Source-Changes-HG archive

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

[src/trunk]: src/sys/net Print "NET_MPSAFE enabled" if it's enabled.



details:   https://anonhg.NetBSD.org/src/rev/61cbe4c35a37
branches:  trunk
changeset: 319290:61cbe4c35a37
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu May 24 05:27:29 2018 +0000

description:
Print "NET_MPSAFE enabled" if it's enabled.

diffstat:

 sys/net/if.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 9127b78f687d -r 61cbe4c35a37 sys/net/if.c
--- a/sys/net/if.c      Thu May 24 04:29:55 2018 +0000
+++ b/sys/net/if.c      Thu May 24 05:27:29 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.c,v 1.423 2018/05/14 02:55:46 ozaki-r Exp $ */
+/*     $NetBSD: if.c,v 1.424 2018/05/24 05:27:29 msaitoh Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2008 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.423 2018/05/14 02:55:46 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.424 2018/05/24 05:27:29 msaitoh Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -299,6 +299,11 @@
 void
 ifinit1(void)
 {
+
+#ifdef NET_MPSAFE
+       printf("NET_MPSAFE enabled\n");
+#endif
+
        mutex_init(&if_clone_mtx, MUTEX_DEFAULT, IPL_NONE);
 
        TAILQ_INIT(&ifnet_list);



Home | Main Index | Thread Index | Old Index