• Christoph Lameter's avatar
    [PATCH] sched: extract load calculation from rebalance_tick · 7835b98b
    Christoph Lameter authored
    A load calculation is always done in rebalance_tick() in addition to the real
    load balancing activities that only take place when certain jiffie counts have
    been reached.  Move that processing into a separate function and call it
    directly from scheduler_tick().
    
    Also extract the time slice handling from scheduler_tick and put it into a
    separate function.  Then we can clean up scheduler_tick significantly.  It
    will no longer have any gotos.
    Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
    Cc: Peter Williams <pwil3058@bigpond.net.au>
    Cc: Nick Piggin <nickpiggin@yahoo.com.au>
    Cc: Christoph Lameter <clameter@sgi.com>
    Cc: "Siddha, Suresh B" <suresh.b.siddha@intel.com>
    Cc: "Chen, Kenneth W" <kenneth.w.chen@intel.com>
    Acked-by: default avatarIngo Molnar <mingo@elte.hu>
    Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    7835b98b
sched.c 175 KB