swconfig: use a mutex instead of a spinlock, many swconfig calls sleep
[openwrt/staging/mkresin.git] / target / linux / generic / files / include / linux / switch.h
index 2c88bb327659f71b54113bce91cdd385d2c114aa..4f4085ef89b533d09443d54eb4e9daacd78b8cb1 100644 (file)
@@ -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];