Commit 7cc34fd0 authored by Alan Cox's avatar Alan Cox Committed by Greg Kroah-Hartman

epca: Kill the big kernel lock

The lock is no longer needed for wait until sent paths so this can go
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 25c3cdf8
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#include <linux/ctype.h> #include <linux/ctype.h>
#include <linux/tty.h> #include <linux/tty.h>
#include <linux/tty_flip.h> #include <linux/tty_flip.h>
#include <linux/smp_lock.h> #include <linux/slab.h>
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/uaccess.h> #include <linux/uaccess.h>
...@@ -2105,7 +2105,6 @@ static int pc_ioctl(struct tty_struct *tty, struct file *file, ...@@ -2105,7 +2105,6 @@ static int pc_ioctl(struct tty_struct *tty, struct file *file,
break; break;
case DIGI_SETAW: case DIGI_SETAW:
case DIGI_SETAF: case DIGI_SETAF:
lock_kernel();
if (cmd == DIGI_SETAW) { if (cmd == DIGI_SETAW) {
/* Setup an event to indicate when the transmit /* Setup an event to indicate when the transmit
buffer empties */ buffer empties */
...@@ -2118,7 +2117,6 @@ static int pc_ioctl(struct tty_struct *tty, struct file *file, ...@@ -2118,7 +2117,6 @@ static int pc_ioctl(struct tty_struct *tty, struct file *file,
if (tty->ldisc->ops->flush_buffer) if (tty->ldisc->ops->flush_buffer)
tty->ldisc->ops->flush_buffer(tty); tty->ldisc->ops->flush_buffer(tty);
} }
unlock_kernel();
/* Fall Thru */ /* Fall Thru */
case DIGI_SETA: case DIGI_SETA:
if (copy_from_user(&ch->digiext, argp, sizeof(digi_t))) if (copy_from_user(&ch->digiext, argp, sizeof(digi_t)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment