summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2013-01-25 18:21:47 (GMT)
committerEmil Medve <Emilian.Medve@Freescale.com>2013-05-26 07:13:26 (GMT)
commit505782a98710c90bdd4c544df3c11d1486dc67f2 (patch)
tree233a74c363d5b1850cf450c10c3cf5c2636d71c2 /drivers/usb
parentf4e31992c2869e371790f5f5bd93be11c182afb3 (diff)
downloadlinux-fsl-qoriq-505782a98710c90bdd4c544df3c11d1486dc67f2.tar.xz
OF: Fixup resursive locking code paths
There is no real reason to use a rwlock for devtree_lock. It even could be a mutex, but unfortunately it's locked from cpu hotplug paths which can't schedule :( So it needs to become a raw lock on rt as well. The devtree_lock would be the only user of a raw_rw_lock, so we are better off cleaning up the recursive locking paths which allows us to convert devtree_lock to a read_lock. Here we do the standard thing of introducing __foo() as the "raw" version of foo(), so that we can take better control of the locking. The "raw" versions are not exported and are for internal use within the file itself. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Cc: devicetree-discuss@lists.ozlabs.org Cc: Grant Likely <grant.likely@secretlab.ca> Cc: Rob Herring <rob.herring@calxeda.com> Link: http://lkml.kernel.org/r/1359138107-14159-1-git-send-email-paul.gortmaker@windriver.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/usb')
0 files changed, 0 insertions, 0 deletions