diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-03-15 19:32:31 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-03-15 19:32:31 +0000 |
commit | a86e95542d27a6cc5a179fbbd98e020bcb9420f0 (patch) | |
tree | e1b2f1fa1632d1ce781e0cd5534858c33f54dbb3 /target/linux/generic/files/include | |
parent | 531638e8392e9a1508dfd35748922c6964e5605c (diff) | |
download | upstream-a86e95542d27a6cc5a179fbbd98e020bcb9420f0.tar.gz upstream-a86e95542d27a6cc5a179fbbd98e020bcb9420f0.tar.bz2 upstream-a86e95542d27a6cc5a179fbbd98e020bcb9420f0.zip |
swconfig: use a mutex instead of a spinlock, many swconfig calls sleep
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30952 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/files/include')
-rw-r--r-- | target/linux/generic/files/include/linux/switch.h | 2 |
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 2c88bb3276..4f4085ef89 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]; |