sched: optimize calc_delta_mine()
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 5 May 2008 21:56:17 +0000 (23:56 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 5 May 2008 21:56:17 +0000 (23:56 +0200)
commite05510d01ad1565e5e086a939261084d67ba2b10
treef6a8d27f2ad546c98079c8868d914de46a77994f
parenta992241de614dd2b7c97a9ba64e28c0e563f19bf
sched: optimize calc_delta_mine()

Joel noticed that the !lw->inv_weight contition isn't unlikely anymore so
remove the unlikely annotation. Also, remove the two div64_u64() inv_weight
calculations, which makes them rely on the calc_delta_mine() path as well.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
CC: Joel Schopp <jschopp@austin.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c