• Mike Travis's avatar
    cpumask: add CPU_MASK_ALL_PTR macro · 321a8e9d
    Mike Travis authored
      * Add a static cpumask_t variable "CPU_MASK_ALL_PTR" to use as
        a pointer reference to CPU_MASK_ALL.  This reduces where possible
        the instances where CPU_MASK_ALL allocates and fills a large
        array on the stack.  Used only if NR_CPUS > BITS_PER_LONG.
    
      * Change init/main.c to use new set_cpus_allowed_ptr().
    
    Depends on:
    	[sched-devel]: sched: add new set_cpus_allowed_ptr function
    
    Cc: H. Peter Anvin <hpa@zytor.com>
    Signed-off-by: default avatarMike Travis <travis@sgi.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    321a8e9d
main.c 20.4 KB