Commit 7cc34fd028ef35b12fec0fa9268c37c099d33bd2
Committed by
Greg Kroah-Hartman
1 parent
25c3cdf80c
Exists in
master
and in
39 other branches
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>
Showing 1 changed file with 1 additions and 3 deletions Side-by-side Diff
drivers/char/epca.c
... | ... | @@ -36,7 +36,7 @@ |
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,7 +2105,6 @@ |
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 */ |
... | ... | @@ -2118,7 +2117,6 @@ |
2118 | 2117 | if (tty->ldisc->ops->flush_buffer) |
2119 | 2118 | tty->ldisc->ops->flush_buffer(tty); |
2120 | 2119 | } |
2121 | - unlock_kernel(); | |
2122 | 2120 | /* Fall Thru */ |
2123 | 2121 | case DIGI_SETA: |
2124 | 2122 | if (copy_from_user(&ch->digiext, argp, sizeof(digi_t))) |