svn commit: r250054 - head/sys/dev/netmap
Luigi Rizzo
luigi at FreeBSD.org
Mon Apr 29 19:30:36 UTC 2013
Author: luigi
Date: Mon Apr 29 19:30:35 2013
New Revision: 250054
URL: http://svnweb.freebsd.org/changeset/base/250054
Log:
whitespace - document alternative locking under linux
Modified:
head/sys/dev/netmap/netmap_mem2.c
Modified: head/sys/dev/netmap/netmap_mem2.c
==============================================================================
--- head/sys/dev/netmap/netmap_mem2.c Mon Apr 29 18:54:31 2013 (r250053)
+++ head/sys/dev/netmap/netmap_mem2.c Mon Apr 29 19:30:35 2013 (r250054)
@@ -97,6 +97,8 @@
#define NETMAP_BUF_MAX_NUM 20*4096*2 /* large machine */
#ifdef linux
+// XXX a mtx would suffice here 20130415 lr
+// #define NMA_LOCK_T safe_spinlock_t
#define NMA_LOCK_T struct semaphore
#define NMA_LOCK_INIT() sema_init(&nm_mem.nm_mtx, 1)
#define NMA_LOCK_DESTROY()
More information about the svn-src-head
mailing list