summaryrefslogtreecommitdiff
path: root/target/linux/generic/files/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-03-15 19:32:31 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-03-15 19:32:31 +0000
commitb957208807c3deeb0fbbdc80c5589863e9db06bb (patch)
treebc49121fad305290b5f6390112c6a51a78c0c1c2 /target/linux/generic/files/include
parent404a4c1fcdf271a922090b804a3587b384347c1f (diff)
downloadmtk-20170518-b957208807c3deeb0fbbdc80c5589863e9db06bb.zip
mtk-20170518-b957208807c3deeb0fbbdc80c5589863e9db06bb.tar.gz
mtk-20170518-b957208807c3deeb0fbbdc80c5589863e9db06bb.tar.bz2
swconfig: use a mutex instead of a spinlock, many swconfig calls sleep
SVN-Revision: 30952
Diffstat (limited to 'target/linux/generic/files/include')
-rw-r--r--target/linux/generic/files/include/linux/switch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/files/include/linux/switch.h b/target/linux/generic/files/include/linux/switch.h
index 2c88bb3..4f4085e 100644
--- a/target/linux/generic/files/include/linux/switch.h
+++ b/target/linux/generic/files/include/linux/switch.h
@@ -191,7 +191,7 @@ struct switch_dev {
struct list_head dev_list;
unsigned long def_global, def_port, def_vlan;
- spinlock_t lock;
+ struct mutex sw_mutex;
struct switch_port *portbuf;
char buf[128];