diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-07-03 13:30:01 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-04-10 00:19:34 (GMT) |
commit | ea4c77aee40edb037398c0b65dd0c3ee742a11d1 (patch) | |
tree | 71dd83ae1c57fc6cdc81a72b7f1877878dbf6d39 /drivers/irqchip/irq-moxart.c | |
parent | 9db18e76ef43081555be1fe93d7df83f39e4df6b (diff) | |
download | linux-fsl-qoriq-ea4c77aee40edb037398c0b65dd0c3ee742a11d1.tar.xz |
serial: 8250: Clean up the locking for -rt
In -RT the spin_lock_irqsave() does not spin but sleep if the lock is
taken. Before that, local_irq_save() is invoked which disables
interrupts even on -RT. Therefore local_irq_save() + spin_lock() does not
work.
In the ->sysrq and oops_in_progress case it is save to trylock the lock
i.e. this is what we do now anyway except for ->sysrq where we assume
that the lock is already taken.
The spin_lock_irqsave() grabs the lock and disables the interrupts on
vanilla (the same behavior) and on -RT it won't disable interrupts.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
[bigeasy: add a patch description]
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Diffstat (limited to 'drivers/irqchip/irq-moxart.c')
0 files changed, 0 insertions, 0 deletions