<HTML><BODY><span class="short_text" style="font-size: 12px;" data-mce-style="font-size: 12px;" lang="en"><span class="short_text" style="font-size: 12px;" data-mce-style="font-size: 12px;" lang="en"><span class="hps">I continue to</span> <span class="hps">study the</span> <span class="hps">task scheduler O(1) <br><br><span lang="en"><span class="hps">I do not understand</span> <span class="hps">what makes this</span> <span class="hps">part of the code</span>?<br></span></span></span></span><pre>1317 void kick_process(struct task_struct *p)<br>1318 {<br>1319 int cpu;<br>1320 <br>1321 preempt_disable();<br>1322 cpu = task_cpu(p);<br>1323 if ((cpu != smp_processor_id()) && task_curr(p))<br>1324 smp_send_reschedule(cpu);<br>1325 preempt_enable();<br></pre><span class="short_text" style="font-size: 12px;" data-mce-style="font-size: 12px;" lang="en"><span class="short_text" style="font-size: 12px;" data-mce-style="font-size: 12px;" lang="en"><span class="hps"><span lang="en"><span id="result_box" class="short_text" lang="en"><span class="hps">link to</span> <span class="hps">source code</span></span>: <a href="http://lxr.free-electrons.com/source/kernel/sched/core.c#L1317" data-mce-href="http://lxr.free-electrons.com/source/kernel/sched/core.c#L1317">http://lxr.free-electrons.com/source/kernel/sched/core.c#L1317</a><br><span id="result_box" class="short_text" lang="en"><span class="hps"><br>what it means to</span> <span class="hps">do</span> <span class="hps">this function </span></span></span></span></span></span>kick_process ? <br><span class="short_text" style="font-size: 12px;" data-mce-style="font-size: 12px;" lang="en"><span class="short_text" style="font-size: 12px;" data-mce-style="font-size: 12px;" lang="en"><span class="hps"><span lang="en"><span id="result_box" class="short_text" lang="en"><span class="hps"></span></span></span></span></span></span><span class="short_text" style="font-size: 12px;" data-mce-style="font-size: 12px;" lang="en"><span class="short_text" style="font-size: 12px;" data-mce-style="font-size: 12px;" lang="en"><span class="hps"><span lang="en"><span id="result_box" class="short_text" lang="en"><span class="hps">I just</span> <span class="hps">met</span> <span class="hps">her</span> <span class="hps">for the first time</span></span><br><br></span></span></span></span><div id="gt-src-tools"> </div><span class="short_text" style="font-size: 12px;" data-mce-style="font-size: 12px;" lang="en"><span class="short_text" style="font-size: 12px;" data-mce-style="font-size: 12px;" lang="en"><span class="hps"><span lang="en"></span></span></span></span><div id="gt-res-content" class="almost_half_cell"><div style="zoom: 1;" dir="ltr" data-mce-style="zoom: 1;"><span id="result_box" lang="en"><span class="hps">If you say</span> <span class="hps">I will be very</span> <span class="hps">grateful to you</span> <span class="hps">for your help</span></span></div></div><span id="result_box" class="short_text" style="font-size: 12px;" data-mce-style="font-size: 12px;" lang="en"><span class="hps"><span id="result_box" lang="en"><br></span></span></span></BODY></HTML>