]> rtime.felk.cvut.cz Git - linux-imx.git/commit
firewire: ohci: omit spinlock IRQ flags where possible
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Mon, 9 Apr 2012 19:40:33 +0000 (21:40 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Tue, 17 Apr 2012 20:27:37 +0000 (22:27 +0200)
commit8a8c47364eef8595e05b5bf53352aa6f16784356
tree6e033f3c8698111e0ad662907978409fc418cb2e
parentd713dfa708e14352cfb71342cf985d08fe14be95
firewire: ohci: omit spinlock IRQ flags where possible

bus_reset_work() is only called from workqueue thread context.

ohci_set_config_rom() and ohci_allocate_iso_context() perform GFP_KERNEL
memory allocations, therefore they must be called with interrupts
enabled.

Hence these functions may disable and enable local IRQs without having
to track IRQ state.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/ohci.c