1. 01 2月, 2008 3 次提交
    • G
      sched: remove unused params · 5aff0531
      Gerald Stralko 提交于
      This removes the extra struct task_struct *p parameter in inc_nr_running
      and dec_nr_running functions.
      
      Signed-off by: Jerry Stralko <gerb.stralko@gmail.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      5aff0531
    • P
      sched: let +nice tasks have smaller impact · ef9884e6
      Peter Zijlstra 提交于
      Michel Dänzr has bisected an interactivity problem with
      plus-reniced tasks back to this commit:
      
       810e95cc is first bad commit
       commit 810e95cc
       Author: Peter Zijlstra <a.p.zijlstra@chello.nl>
       Date:   Mon Oct 15 17:00:14 2007 +0200
      
       sched: another wakeup_granularity fix
      
            unit mis-match: wakeup_gran was used against a vruntime
      
      fix this by assymetrically scaling the vtime of positive reniced
      tasks.
      Bisected-by: NMichel Dänzer <michel@tungstengraphics.com>
      Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      ef9884e6
    • S
      sched: fix high wake up latencies with FAIR_USER_SCHED · 296825cb
      Srivatsa Vaddagiri 提交于
      The reason why we are getting better wakeup latencies for
      !FAIR_USER_SCHED is because of this snippet of code in place_entity():
      
      	if (!initial) {
      		/* sleeps upto a single latency don't count. */
      		if (sched_feat(NEW_FAIR_SLEEPERS) && entity_is_task(se))
      						     ^^^^^^^^^^^^^^^^^^
      			vruntime -= sysctl_sched_latency;
      
      		/* ensure we never gain time by being placed backwards. */
      		vruntime = max_vruntime(se->vruntime, vruntime);
      	}
      
      NEW_FAIR_SLEEPERS feature gives credit for sleeping only to tasks and
      not group-level entities. With the patch attached, I could see that
      wakeup latencies with FAIR_USER_SCHED are restored to the same level as
      !FAIR_USER_SCHED.
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      296825cb
  2. 30 1月, 2008 29 次提交
  3. 29 1月, 2008 8 次提交