x86 smp: modify send_IPI_mask interface to accept cpumask_t pointers

Previous thread: x86: prepare for cpumask iterators to only go to nr_cpu_ids by Linux Kernel Mailing List on Friday, January 2, 2009 - 2:05 pm. (1 message)

Next thread: x86: Use cpumask accessors code for possible/present maps. by Linux Kernel Mailing List on Friday, January 2, 2009 - 2:05 pm. (1 message)
From: Linux Kernel Mailing List
Date: Friday, January 2, 2009 - 2:05 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e79867...
Commit:     e7986739a76cde5079da08809d8bbc6878387ae0
Parent:     36f5101a60de8f79c0d1ca06e50660bf5129e02c
Author:     Mike Travis <travis@sgi.com>
AuthorDate: Tue Dec 16 17:33:52 2008 -0800
Committer:  Mike Travis <travis@sgi.com>
CommitDate: Tue Dec 16 17:40:56 2008 -0800

    x86 smp: modify send_IPI_mask interface to accept cpumask_t pointers
    
    Impact: cleanup, change parameter passing
    
      * Change genapic interfaces to accept cpumask_t pointers where possible.
    
      * Modify external callers to use cpumask_t pointers in function calls.
    
      * Create new send_IPI_mask_allbutself which is the same as the
        send_IPI_mask functions but removes smp_processor_id() from list.
        This removes another common need for a temporary cpumask_t variable.
    
      * Functions that used a temp cpumask_t variable for:
    
    	cpumask_t allbutme = cpu_online_map;
    
    	cpu_clear(smp_processor_id(), allbutme);
    	if (!cpus_empty(allbutme))
    		...
    
        become:
    
    	if (!cpus_equal(cpu_online_map, cpumask_of_cpu(cpu)))
    		...
    
      * Other minor code optimizations (like using cpus_clear instead of
        CPU_MASK_NONE, etc.)
    
    Applies to linux-2.6.tip/master.
    
    Signed-off-by: Mike Travis <travis@sgi.com>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    Acked-by: Ingo Molnar <mingo@elte.hu>
---
 arch/x86/include/asm/bigsmp/apic.h            |   14 ++--
 arch/x86/include/asm/bigsmp/ipi.h             |    9 +-
 arch/x86/include/asm/es7000/apic.h            |   38 ++++---
 arch/x86/include/asm/es7000/ipi.h             |    9 +-
 arch/x86/include/asm/genapic_32.h             |    9 +-
 arch/x86/include/asm/genapic_64.h             |   11 ++-
 arch/x86/include/asm/ipi.h                    |   21 ++++-
 arch/x86/include/asm/mach-default/mach_apic.h |   17 ...
Previous thread: x86: prepare for cpumask iterators to only go to nr_cpu_ids by Linux Kernel Mailing List on Friday, January 2, 2009 - 2:05 pm. (1 message)

Next thread: x86: Use cpumask accessors code for possible/present maps. by Linux Kernel Mailing List on Friday, January 2, 2009 - 2:05 pm. (1 message)