Thread (2 messages) 2 messages, 2 authors, 2012-03-29

why use 'raw_spin_lock_irqsave' inf function 'of_find_node_with_property'

flat view

From: Huang Changming-R66093 <hidden>
Date: 2012-03-29 10:01:32

Hi, all
In function "of_find_node_with_property", why use "raw_spin_lock_irqsave" to disable preemption and disable interrupt?
If enable them, what impact will be observed?
This function just finds the node from the DTS file, it can't be interrupted or preempted?

I have done one test: remove "raw_spin_lock_irqsave" and "raw_spin_unlock_irqrestore" from this function,
It seems there is no any bad result, the Linux kernel still work well.

Best Regards
Jerry Huang
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help