sched: simplify bonus calculation #2
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 24 Aug 2007 18:39:10 +0000 (20:39 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 24 Aug 2007 18:39:10 +0000 (20:39 +0200)
commitea0aa3b23a193d1fc5c982286edecd071af67d94
treef0eaf77186b1d6056a34e9a87ab326f0847bdb1f
parenta6f2994042cc2db9e507dc702ed0b5e2cc5890fe
sched: simplify bonus calculation #2

current code:

 delta = calc_delta_mine(delta_exec, curr->load.weight, lw);
 delta = min((u64)delta, cfs_rq->sleeper_bonus);

Notice that this calc_delta_mine() line is exactly delta_mine, which
gives:

 delta = min((u64)delta_mine, cfs_rq->sleeper_bonus);

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_fair.c