From d111bbbc06286dc2cb6e622d4f78e5cb65e3a4f8 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Tue, 1 Mar 2005 11:54:46 +0000 Subject: [PATCH] Add macro NET_CALLOUT_MPSAFE, which should be used when initializing network related callouts. Reviewed by: rwatson --- sys/sys/mutex.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/sys/mutex.h b/sys/sys/mutex.h index 8010ebbc158..5fe31eb345f 100644 --- a/sys/sys/mutex.h +++ b/sys/sys/mutex.h @@ -395,6 +395,7 @@ extern int debug_mpsafenet; /* defined in net/netisr.c */ if (!debug_mpsafenet) \ mtx_assert(&Giant, MA_OWNED); \ } while (0) +#define NET_CALLOUT_MPSAFE (debug_mpsafenet ? CALLOUT_MPSAFE : 0) #define UGAR(rval) do { \ int _val = (rval); \