Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

epca: Kill the big kernel lock

The lock is no longer needed for wait until sent paths so this can go

Signed-off-by: Alan Cox <alan@linux.intel.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Alan Cox and committed by
Greg Kroah-Hartman
7cc34fd0 25c3cdf8

+1 -3
+1 -3
drivers/char/epca.c
··· 36 36 #include <linux/ctype.h> 37 37 #include <linux/tty.h> 38 38 #include <linux/tty_flip.h> 39 - #include <linux/smp_lock.h> 39 + #include <linux/slab.h> 40 40 #include <linux/ioport.h> 41 41 #include <linux/interrupt.h> 42 42 #include <linux/uaccess.h> ··· 2105 2105 break; 2106 2106 case DIGI_SETAW: 2107 2107 case DIGI_SETAF: 2108 - lock_kernel(); 2109 2108 if (cmd == DIGI_SETAW) { 2110 2109 /* Setup an event to indicate when the transmit 2111 2110 buffer empties */ ··· 2117 2118 if (tty->ldisc->ops->flush_buffer) 2118 2119 tty->ldisc->ops->flush_buffer(tty); 2119 2120 } 2120 - unlock_kernel(); 2121 2121 /* Fall Thru */ 2122 2122 case DIGI_SETA: 2123 2123 if (copy_from_user(&ch->digiext, argp, sizeof(digi_t)))