summaryrefslogtreecommitdiffstats
path: root/kernel/sched_rt.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2008-01-25 21:08:21 +0100
committerIngo Molnar <mingo@elte.hu>2008-01-25 21:08:21 +0100
commit4bf0b77158d581c952af237aec79d0604b78fe27 (patch)
treed2500b882a4ed7e9a97e8633120a6e6aeccfa0c3 /kernel/sched_rt.c
parentsched: get rid of 'new_cpu' in try_to_wake_up() (diff)
downloadlinux-4bf0b77158d581c952af237aec79d0604b78fe27.tar.xz
linux-4bf0b77158d581c952af237aec79d0604b78fe27.zip
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>
Diffstat (limited to 'kernel/sched_rt.c')
0 files changed, 0 insertions, 0 deletions