why use 'raw_spin_lock_irqsave' inf function 'of_find_node_with_property'

Huang Changming-R66093 r66093 at freescale.com
Thu Mar 29 21:01:22 EST 2012

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20120329/effec30c/attachment.html>

More information about the Linuxppc-dev mailing list