kernel_optimize_test/drivers/of
Stephen Warren c31a0c0522 of: fix recursive locking in of_get_next_available_child()
of_get_next_available_child() acquires devtree_lock, then calls
of_device_is_available() which calls of_get_property() which calls
of_find_property() which tries to re-acquire devtree_lock, thus causing
deadlock.

To avoid this, create a new __of_device_is_available() which calls
__of_get_property() instead, which calls __of_find_property(), which
does not take the lock,. Update of_get_next_available_child() to call
the new __of_device_is_available() since it already owns the lock.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2013-02-13 10:05:24 +00:00
..
address.c
base.c of: fix recursive locking in of_get_next_available_child() 2013-02-13 10:05:24 +00:00
device.c
fdt.c
irq.c
Kconfig
Makefile
of_i2c.c
of_mdio.c
of_mtd.c
of_net.c
of_pci_irq.c
of_pci.c
of_private.h
pdt.c
platform.c
selftest.c