summaryrefslogtreecommitdiffstats
path: root/include/linux/srcu.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2010-04-19 22:24:22 -0700
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2010-05-10 11:08:35 -0700
commitd14aada8e20bdf81ffd43f433b123972cf575b32 (patch)
treeac8a7682eee53213b47e659d7f5a74a6306f6fa7 /include/linux/srcu.h
parentf1d507beeab1d1d60a1c58eac7dc81522c6f4629 (diff)
downloadop-kernel-dev-d14aada8e20bdf81ffd43f433b123972cf575b32.zip
op-kernel-dev-d14aada8e20bdf81ffd43f433b123972cf575b32.tar.gz
rcu: make SRCU usable in modules
Add a #include for mutex.h to allow SRCU to be more easily used in kernel modules. Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'include/linux/srcu.h')
-rw-r--r--include/linux/srcu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/srcu.h b/include/linux/srcu.h
index 9c01f10..4d5d2f5 100644
--- a/include/linux/srcu.h
+++ b/include/linux/srcu.h
@@ -27,6 +27,8 @@
#ifndef _LINUX_SRCU_H
#define _LINUX_SRCU_H
+#include <linux/mutex.h>
+
struct srcu_struct_array {
int c[2];
};
OpenPOWER on IntegriCloud