]> git.baikalelectronics.ru Git - kernel.git/commit
cpumask: reduce stack usage in SD_x_INIT initializers
authorMike Travis <travis@sgi.com>
Sat, 5 Apr 2008 01:11:11 +0000 (18:11 -0700)
committerIngo Molnar <mingo@elte.hu>
Sat, 19 Apr 2008 17:44:59 +0000 (19:44 +0200)
commit2a6def7179a37885d9c83805cf9b9e63546fd31c
treecca2b12203a10944d7095a07df7292421f578dc9
parent823efdf48f563cf7029b8d0e8227ffbef93e5a7c
cpumask: reduce stack usage in SD_x_INIT initializers

  * Remove empty cpumask_t (and all non-zero/non-null) variables
    in SD_*_INIT macros.  Use memset(0) to clear.  Also, don't
    inline the initializer functions to save on stack space in
    build_sched_domains().

  * Merge change to include/linux/topology.h that uses the new
    node_to_cpumask_ptr function in the nr_cpus_node macro into
    this patch.

Depends on:
[mm-patch]: asm-generic-add-node_to_cpumask_ptr-macro.patch
[sched-devel]: sched: add new set_cpus_allowed_ptr function

Cc: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Mike Travis <travis@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/asm-x86/topology.h
include/linux/topology.h
kernel/sched.c