All of lore.kernel.org
 help / color / mirror / Atom feed
* why use 'raw_spin_lock_irqsave'  inf function 'of_find_node_with_property'
@ 2012-03-29 10:01 Huang Changming-R66093
  2012-03-29 15:48 ` Tabi Timur-B04825
  0 siblings, 1 reply; 2+ messages in thread
From: Huang Changming-R66093 @ 2012-03-29 10:01 UTC (permalink / raw)
  To: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 480 bytes --]

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


[-- Attachment #2: Type: text/html, Size: 2660 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-29 15:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-29 10:01 why use 'raw_spin_lock_irqsave' inf function 'of_find_node_with_property' Huang Changming-R66093
2012-03-29 15:48 ` Tabi Timur-B04825

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.