<br><br><div class="gmail_quote">On Fri, Sep 9, 2011 at 5:51 PM, sandeep kumar <span dir="ltr">&lt;<a href="mailto:coolsandyforyou@gmail.com" target="_blank">coolsandyforyou@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>Hi all,</div>
<div>I wanted to manipulate the watchdog timer driver to see how it works in </div>
<div>deadlocks.</div></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>&lt;snip&gt; </div></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>My question is this,</div>
<div>When watch dog timer expires(hardware watchdog), its interrupt directly resets the system</div>
<div>(or) it is treated as an interrupt and a handler is executed.</div></blockquote><div><br></div><div>AFAIK, after the watchdog is triggered, the SoC/processor is completely reset including all the peripherals. The main purpose of a watchdog is to reset a processor which has locked up somewhere in some thread (with interrupts disabled, maybe), effectively starving the thread which is supposed to reset the watchdog periodically. Hence, there is no point in having an interrupt handler to service watchdog interrupt. </div>


<div><br></div><div>But maybe some processors may have an option to have an periodic interrupt from watchdog timer, whose only purpose is to reset the watchdog timer. If this interrupt is not serviced for long time then the watchdog would reset the system directly in hardware.</div>


<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div> </div>
<div>THanks,</div>
<div>Sandeep.<br clear="all"><br><br></div>
<br>_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">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>