From: Alan Cox Date: Tue, 1 Jun 2010 20:52:48 +0000 (+0200) Subject: epca: Kill the big kernel lock X-Git-Tag: v2.6.36-rc1~294^2~48 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7cc34fd028ef35b12fec0fa9268c37c099d33bd2;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git 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 Cc: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/char/epca.c b/drivers/char/epca.c index 6f5ffe1..d9df46a 100644 --- a/drivers/char/epca.c +++ b/drivers/char/epca.c @@ -36,7 +36,7 @@ #include #include #include -#include +#include #include #include #include @@ -2105,7 +2105,6 @@ static int pc_ioctl(struct tty_struct *tty, struct file *file, break; case DIGI_SETAW: case DIGI_SETAF: - lock_kernel(); if (cmd == DIGI_SETAW) { /* Setup an event to indicate when the transmit buffer empties */ @@ -2118,7 +2117,6 @@ static int pc_ioctl(struct tty_struct *tty, struct file *file, if (tty->ldisc->ops->flush_buffer) tty->ldisc->ops->flush_buffer(tty); } - unlock_kernel(); /* Fall Thru */ case DIGI_SETA: if (copy_from_user(&ch->digiext, argp, sizeof(digi_t)))