title: Who runs first after fork() on real_time processes?
body: <p>In Linux kernel 2.6.39.4, the <code>sched_fork()</code> will call the corresponding <code>task_fork()</code>, which is not implemented by <code>sched_rt</code> class. While in <code>sched_fair</code> class, <code>task_fork_()</code> will make sure the child runs first if <code>sysctl_sched_child_runs_first</code> is set. What about <code>sched_rt</code>? Does it mean the <code>sysctl_sched_child_runs_first</code> has no effect on the real time processes?</p>
  
  <pre class="lang-c prettyprint-override"><code>    if (sysctl_sched_child_runs_first &amp;&amp; curr &amp;&amp; entity_before(curr, se)) {
          // make sure the child runs first
          swap(curr-&gt;vruntime, se-&gt;vruntime);
          resched_task(rq-&gt;curr);
      }
  </code></pre>