]> git.baikalelectronics.ru Git - kernel.git/commit
serial: omap: don't save IRQ flags on hardirq
authorFelipe Balbi <balbi@ti.com>
Thu, 6 Sep 2012 12:45:30 +0000 (15:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Sep 2012 16:17:01 +0000 (09:17 -0700)
commitbe606f8837e2f53b6bb508146018e7d8e94fa96a
tree64bab92d01b82786fbae81561bea7528ec407a2d
parent32d958e3cacc62d501a4b0df335074dde2ddb807
serial: omap: don't save IRQ flags on hardirq

When we're running our hardirq handler, there's
not need to disable IRQs with spin_lock_irqsave()
because IRQs are already disabled. It also makes
no difference if we save or not IRQ flags.

Switch over to simple spin_lock/spin_unlock and
drop the "flags" variable.

Tested-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/omap-serial.c