diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2013-02-06 15:30:56 -0500 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2013-02-08 18:02:40 -0500 |
commit | d6d3c4e656513dcea61ce900f0ecb9ca820ee7cd (patch) | |
tree | 9d5602c46a048aa23be0f5f3fffcf126ace3f651 /include/linux/of.h | |
parent | eb7ccb8184ab36b61fb596bd8d573e22e04d6266 (diff) |
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>
Diffstat (limited to 'include/linux/of.h')
-rw-r--r-- | include/linux/of.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index 5ebcc5c8e423..bb35c423b1f9 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
@@ -92,7 +92,7 @@ static inline void of_node_put(struct device_node *node) { } | |||
92 | extern struct device_node *of_allnodes; | 92 | extern struct device_node *of_allnodes; |
93 | extern struct device_node *of_chosen; | 93 | extern struct device_node *of_chosen; |
94 | extern struct device_node *of_aliases; | 94 | extern struct device_node *of_aliases; |
95 | extern rwlock_t devtree_lock; | 95 | extern raw_spinlock_t devtree_lock; |
96 | 96 | ||
97 | static inline bool of_have_populated_dt(void) | 97 | static inline bool of_have_populated_dt(void) |
98 | { | 98 | { |