• M
    sched: put back some stack hog changes that were undone in kernel/sched.c · 6ca09dfc
    Mike Travis 提交于
    Impact: prevents panic from stack overflow on numa-capable machines.
    
    Some of the "removal of stack hogs" changes in kernel/sched.c by using
    node_to_cpumask_ptr were undone by the early cpumask API updates, and
    causes a panic due to stack overflow.  This patch undoes those changes
    by using cpumask_of_node() which returns a 'const struct cpumask *'.
    
    In addition, cpu_coregoup_map is replaced with cpu_coregroup_mask further
    reducing stack usage.  (Both of these updates removed 9 FIXME's!)
    
    Also:
       Pick up some remaining changes from the old 'cpumask_t' functions to
       the new 'struct cpumask *' functions.
    
       Optimize memory traffic by allocating each percpu local_cpu_mask on the
       same node as the referring cpu.
    Signed-off-by: NMike Travis <travis@sgi.com>
    Acked-by: NRusty Russell <rusty@rustcorp.com.au>
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    6ca09dfc
sched_rt.c 35.9 KB