OF: convert devtree lock from rw_lock to raw spinlock
authorThomas Gleixner <tglx@linutronix.de>
Wed, 6 Feb 2013 20:30:56 +0000 (15:30 -0500)
committerRob Herring <rob.herring@calxeda.com>
Fri, 8 Feb 2013 23:02:40 +0000 (17:02 -0600)
commitd6d3c4e656513dcea61ce900f0ecb9ca820ee7cd
tree9d5602c46a048aa23be0f5f3fffcf126ace3f651
parenteb7ccb8184ab36b61fb596bd8d573e22e04d6266
OF: convert devtree lock from rw_lock to raw spinlock

With the locking cleanup in place (from "OF: Fixup resursive
locking code paths"), we can now do the conversion from the
rw_lock to a raw spinlock as required for preempt-rt.

The previous cleanup and this conversion were originally
separate since they predated when mainline got raw spinlock (in
commit c2f21ce2e31286a "locking: Implement new raw_spinlock").

So, at that point in time, the cleanup was considered plausible
for mainline, but not this conversion.  In any case, we've kept
them separate as it makes for easier review and better bisection.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
[PG: taken from preempt-rt, update subject & add a commit log]
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
arch/sparc/kernel/prom_common.c
drivers/of/base.c
include/linux/of.h