<br><br>On Thursday, August 20, 2015, Jeff Haran <<a href="mailto:Jeff.Haran@citrix.com">Jeff.Haran@citrix.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="javascript:_e(%7B%7D,'cvml','kernelnewbies-bounces@kernelnewbies.org');" target="_blank">kernelnewbies-bounces@kernelnewbies.org</a> [mailto:<a href="javascript:_e(%7B%7D,'cvml','kernelnewbies-bounces@kernelnewbies.org');" target="_blank">kernelnewbies-bounces@kernelnewbies.org</a>]
<b>On Behalf Of </b>Woody Wu<br>
<b>Sent:</b> Wednesday, August 19, 2015 4:47 PM<br>
<b>To:</b> kernelnewbies<br>
<b>Subject:</b> msleep() in interrupt handler?<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><span style="font-family:"UICTFontTextStyleBody","serif"">Hi List,</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal"><span style="font-family:"UICTFontTextStyleBody","serif"">What will happen if call msleep() in an interrupt handler? I knew the msleep() will cause the calling process to sleep, but in the context of interruption, there is no process, so
I am wondering what is getting 'sleep' in this situation.</span><u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"UICTFontTextStyleBody","serif"">-woody</span><u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
<br>
-- <br>
Sent from Gmail Mobile<u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">If you are lucky you’ll get a message along the lines of “scheduling while atomic” on your console to let you know you’ve blown it. At least that’s what I’ve
seen when I’ve blown it like that. 8^)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Jeff Haran<u></u><u></u></span></p><p class="MsoNormal"></p></div></div></div></blockquote><div><br></div><div>I did not see the message. Actually my interrupt handler is calling i2c_transfer which in turn used msleep() somewhere in its code. Is this normal or dangerous?</div><div> </div><br><br>-- <br>Sent from Gmail Mobile<br>