From: Peter Zijlstra Date: Fri, 25 Jan 2008 20:08:21 +0000 (+0100) Subject: sched: remove do_div() from __sched_slice() X-Git-Tag: v2.6.25-rc1~1237^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bf0b77158d581c952af237aec79d0604b78fe27;p=pandora-kernel.git 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 Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed