<div dir="ltr"><div><div><div><div>Thanks Anish.<br><br></div>As for local_irq_save and raw_local_irq_save, it seems <br>local_irq_save - called at many different places while raw_local_irq_save is called in fewer places.<br>
<br></div> local_irq_save - does not disable Hardware interrupts.<br></div> Whereas,raw_local_irq_save - does DISABLE hardware interrupts.<br><br></div><div>As per code, raw_local_irq_save is related with timer interrupts.<br>
</div><div>Please provide your insights on this.<br><br></div><div>Also, in local_irq_save - how exactly disabling interrupts is achieved ( in spite of " NOT DISABLING " hardware interrupts) ?</div><div><br></div>
<br><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 4, 2013 at 2:45 PM, anish singh <span dir="ltr"><<a href="mailto:anish198519851985@gmail.com" target="_blank">anish198519851985@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Thu, Jul 4, 2013 at 1:55 PM, Raj Ravi <<a href="mailto:mekaviraj@gmail.com">mekaviraj@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> Please let me know the difference between<br>
> local_irq_save and raw_local_irq_save ?<br>
<br>
</div>did you check who calls this raw_local_irq_save?<br>
similarly who calls local_irq_save?<br>
finding out these will answer your questions<br>
<div class="im">> At which situation one should use raw_local_irq_save?<br>
><br>
><br>
> Also, I read "flags" is where interrupt state is saved while disabling<br>
> interrupts in local cpu (for local_irq_save).<br>
><br>
> What EXACTLY this flags contains? What do you mean by interrupt state<br>
> here?<br>
<br>
</div>interrupt state meaning: which all interrupts are enabled or disabled at this<br>
instant.If a particular interrupt was enabled at that instant then we don't<br>
do any thing with our locking mechanism which causes it be be disabled.<br>
What we are doing with those flags is nothing but maintaining the state.<br>
><br>
> Thanks!<br>
> Kavi<br>
><br>
> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
><br>
</blockquote></div><br></div>