diff options
author | Mike Travis <travis@sgi.com> | 2008-04-04 21:11:12 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-19 13:44:58 -0400 |
commit | d366f8cbc16882e93538d9a52423c2f50dad7c06 (patch) | |
tree | 64202cd91a942dc3ea9b88adb6da562c2fb191a8 /arch | |
parent | f46bdf2db25dfaff3b611c9711705645cdb03acc (diff) |
cpumask: Cleanup more uses of CPU_MASK and NODE_MASK
* Replace usages of CPU_MASK_NONE, CPU_MASK_ALL, NODE_MASK_NONE,
NODE_MASK_ALL to reduce stack requirements for large NR_CPUS
and MAXNODES counts.
* In some cases, the cpumask variable was initialized but then overwritten
with another value. This is the case for changes like this:
- cpumask_t oldmask = CPU_MASK_ALL;
+ cpumask_t oldmask;
Signed-off-by: Mike Travis <travis@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/io_apic_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/io_apic_64.c b/arch/x86/kernel/io_apic_64.c index b54464b26658..9ba11d07920f 100644 --- a/arch/x86/kernel/io_apic_64.c +++ b/arch/x86/kernel/io_apic_64.c | |||
@@ -785,7 +785,7 @@ static void __clear_irq_vector(int irq) | |||
785 | per_cpu(vector_irq, cpu)[vector] = -1; | 785 | per_cpu(vector_irq, cpu)[vector] = -1; |
786 | 786 | ||
787 | cfg->vector = 0; | 787 | cfg->vector = 0; |
788 | cfg->domain = CPU_MASK_NONE; | 788 | cpus_clear(cfg->domain); |
789 | } | 789 | } |
790 | 790 | ||
791 | void __setup_vector_irq(int cpu) | 791 | void __setup_vector_irq(int cpu) |