x86: Update io_apic.c to use new cpumask API

Previous thread: x86: fixup_irqs() doesnt need an argument. by Linux Kernel Mailing List on Friday, January 2, 2009 - 2:05 pm. (1 message)

Next thread: x86: Set CONFIG_NR_CPUS even on UP 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=22f65d...
Commit:     22f65d31b25a320a5246592160bcb102d2791c45
Parent:     6eeb7c5a99434596c5953a95baa17d2f085664e3
Author:     Mike Travis <travis@sgi.com>
AuthorDate: Tue Dec 16 17:33:56 2008 -0800
Committer:  Mike Travis <travis@sgi.com>
CommitDate: Tue Dec 16 17:40:57 2008 -0800

    x86: Update io_apic.c to use new cpumask API
    
    Impact: cleanup, consolidate patches, use new API
    
    Consolidate the following into a single patch to adapt to new
    sparseirq code in arch/x86/kernel/io_apic.c, add allocation of
    cpumask_var_t's in domain and old_domain, and reduce further
    merge conflicts.  Only one file (arch/x86/kernel/io_apic.c) is
    changed in all of these patches.
    
    	0006-x86-io_apic-change-irq_cfg-domain-old_domain-to.patch
    	0007-x86-io_apic-set_desc_affinity.patch
    	0008-x86-io_apic-send_cleanup_vector.patch
    	0009-x86-io_apic-eliminate-remaining-cpumask_ts-from-st.patch
    	0021-x86-final-cleanups-in-io_apic-to-use-new-cpumask-AP.patch
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    Signed-off-by: Mike Travis <travis@sgi.com>
---
 arch/x86/kernel/io_apic.c |  302 ++++++++++++++++++++++-----------------------
 1 files changed, 145 insertions(+), 157 deletions(-)

diff --git a/arch/x86/kernel/io_apic.c b/arch/x86/kernel/io_apic.c
index 7f23ce7..60bb8b1 100644
--- a/arch/x86/kernel/io_apic.c
+++ b/arch/x86/kernel/io_apic.c
@@ -136,8 +136,8 @@ static struct irq_pin_list *get_one_free_irq_2_pin(int cpu)
 
 struct irq_cfg {
 	struct irq_pin_list *irq_2_pin;
-	cpumask_t domain;
-	cpumask_t old_domain;
+	cpumask_var_t domain;
+	cpumask_var_t old_domain;
 	unsigned move_cleanup_count;
 	u8 vector;
 	u8 move_in_progress : 1;
@@ -149,22 +149,22 @@ static struct irq_cfg irq_cfgx[] = {
 #else
 static struct irq_cfg irq_cfgx[NR_IRQS] = {
 #endif
-	[0]  = { .domain = CPU_MASK_ALL, .vector = ...
Previous thread: x86: fixup_irqs() doesnt need an argument. by Linux Kernel Mailing List on Friday, January 2, 2009 - 2:05 pm. (1 message)

Next thread: x86: Set CONFIG_NR_CPUS even on UP by Linux Kernel Mailing List on Friday, January 2, 2009 - 2:05 pm. (1 message)