]> git.baikalelectronics.ru Git - kernel.git/commit
of: Fix locking vs. interrupts
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 12 Jun 2013 05:39:04 +0000 (15:39 +1000)
committerGrant Likely <grant.likely@linaro.org>
Thu, 13 Jun 2013 21:12:14 +0000 (22:12 +0100)
commitb2b7be1eca8a0c0c3cb05d1e4b0092d15f00c7c7
tree936d0c8a6bd0b35f29198ae70adde0d753d73721
parent0df5c603c89659b27f2a4fdd4f1b2dc3c81ad923
of: Fix locking vs. interrupts

The OF code uses irqsafe locks everywhere except in a handful of functions
for no obvious reasons. Since the conversion from the old rwlocks, this
now triggers lockdep warnings when used at interrupt time. At least one
driver (ibmvscsi) seems to be doing that from softirq context.

This converts the few non-irqsafe locks into irqsafe ones, making them
consistent with the rest of the code.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
arch/sparc/kernel/prom_common.c
drivers/of/base.c