]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
misdn: kill big kernel lock
authorArnd Bergmann <arnd@arndb.de>
Tue, 14 Sep 2010 09:35:05 +0000 (09:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Sep 2010 02:29:56 +0000 (19:29 -0700)
The use of the big kernel lock in misdn is completely
bogus, so let's just remove it.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Karsten Keil <isdn@linux-pingi.de>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/mISDN/stack.c

index b159bd59e64e1f65b898fb371ea3c73e85d81f64..a5b632e6755264bb33205f55cb62fc85a1f42b43 100644 (file)
@@ -18,7 +18,6 @@
 #include <linux/slab.h>
 #include <linux/mISDNif.h>
 #include <linux/kthread.h>
-#include <linux/smp_lock.h>
 #include "core.h"
 
 static u_int   *debug;
@@ -205,13 +204,7 @@ mISDNStackd(void *data)
        struct mISDNstack *st = data;
        int err = 0;
 
-#ifdef CONFIG_SMP
-       lock_kernel();
-#endif
        sigfillset(&current->blocked);
-#ifdef CONFIG_SMP
-       unlock_kernel();
-#endif
        if (*debug & DEBUG_MSG_THREAD)
                printk(KERN_DEBUG "mISDNStackd %s started\n",
                    dev_name(&st->dev->dev));