commit | 4bf0b77158d581c952af237aec79d0604b78fe27 | [log] [tgz] |
---|---|---|
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | Fri Jan 25 21:08:21 2008 +0100 |
committer | Ingo Molnar <mingo@elte.hu> | Fri Jan 25 21:08:21 2008 +0100 |
tree | d2500b882a4ed7e9a97e8633120a6e6aeccfa0c3 | |
parent | 5d2f5a616d65e3c08acde3195694c4ab8afbc1b7 [diff] |
sched: remove do_div() from __sched_slice() Yanmin Zhang noticed a nice optimization: p = l * nr / nl, nl = l/g -> p = g * nr which eliminates a do_div() from __sched_period(). Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>