summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/netgraph.h
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2005-02-12 09:52:36 +0000
committerglebius <glebius@FreeBSD.org>2005-02-12 09:52:36 +0000
commitfa1f09bbf69731ba4de4bb8c411bd375796061f8 (patch)
tree185ddc303e22964a7a027edff3c8d83201749189 /sys/netgraph/netgraph.h
parentd5719e89ef0bbfa7eb82b4ec6d5bc4ef0416b279 (diff)
downloadFreeBSD-src-fa1f09bbf69731ba4de4bb8c411bd375796061f8.zip
FreeBSD-src-fa1f09bbf69731ba4de4bb8c411bd375796061f8.tar.gz
Make netgraph ISR and callout MPSAFE.
Reviewed by: rwatson, ru
Diffstat (limited to 'sys/netgraph/netgraph.h')
-rw-r--r--sys/netgraph/netgraph.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netgraph/netgraph.h b/sys/netgraph/netgraph.h
index 96e3dbb..4cf32b7 100644
--- a/sys/netgraph/netgraph.h
+++ b/sys/netgraph/netgraph.h
@@ -1079,8 +1079,7 @@ int ng_send_fn(node_p node, hook_p hook, ng_item_fn *fn,
int ng_uncallout(struct callout *c, node_p node);
int ng_callout(struct callout *c, node_p node, hook_p hook, int ticks,
ng_item_fn *fn, void * arg1, int arg2);
-/* We should mark callout mpsafe as soon as we mark netgraph ISR mpsafe */
-#define ng_callout_init(c) callout_init(c, 0)
+#define ng_callout_init(c) callout_init(c, CALLOUT_MPSAFE)
/*
* prototypes the user should DEFINITELY not use directly
OpenPOWER on IntegriCloud