https://github.com/torvalds/linux
Revision 6a6029b8cefe0ca7e82f27f3904dbedba3de4e06 authored by Ingo Molnar on 14 March 2008, 21:17:08 UTC, committed by Ingo Molnar on 15 March 2008, 02:02:50 UTC
Use the existing calc_delta_mine() calculation for sched_slice(). This
saves a divide and simplifies the code because we share it with the
other /cfs_rq->load users.

It also improves code size:

      text    data     bss     dec     hex filename
     42659    2740     144   45543    b1e7 sched.o.before
     42093    2740     144   44977    afb1 sched.o.after

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
1 parent e22ecef
History
Tip revision: 6a6029b8cefe0ca7e82f27f3904dbedba3de4e06 authored by Ingo Molnar on 14 March 2008, 21:17:08 UTC
sched: simplify sched_slice()
Tip revision: 6a6029b
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 644 bytes
.mailmap -rw-r--r-- 3.6 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 90.4 KB
Kbuild -rw-r--r-- 1.6 KB
MAINTAINERS -rw-r--r-- 94.5 KB
Makefile -rw-r--r-- 52.8 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top