• C
    [PATCH] sched: extract load calculation from rebalance_tick · 7835b98b
    Christoph Lameter 提交于
    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: NChristoph 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: NIngo Molnar <mingo@elte.hu>
    Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
    Signed-off-by: NAndrew Morton <akpm@osdl.org>
    Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
    7835b98b
sched.c 174.6 KB