diff options
author | Mike Travis <travis@sgi.com> | 2008-07-15 17:14:31 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-18 16:02:57 -0400 |
commit | cb6d2be60dc3ec9ac788f45d8e24b82a9faacdd9 (patch) | |
tree | ecd9f28f0595ebd466f30ede91661bac9726aac5 /arch | |
parent | 65c011845316d3c1381f478ca0d8265c43b3b039 (diff) |
cpumask: Optimize cpumask_of_cpu in arch/x86/kernel/io_apic_64.c
* Optimize various places where a pointer to the cpumask_of_cpu value
will result in reducing stack pressure.
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 | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/kernel/io_apic_64.c b/arch/x86/kernel/io_apic_64.c index bf27114773d5..a85db790754b 100644 --- a/arch/x86/kernel/io_apic_64.c +++ b/arch/x86/kernel/io_apic_64.c | |||
@@ -1372,12 +1372,10 @@ static unsigned int startup_ioapic_irq(unsigned int irq) | |||
1372 | static int ioapic_retrigger_irq(unsigned int irq) | 1372 | static int ioapic_retrigger_irq(unsigned int irq) |
1373 | { | 1373 | { |
1374 | struct irq_cfg *cfg = &irq_cfg[irq]; | 1374 | struct irq_cfg *cfg = &irq_cfg[irq]; |
1375 | cpumask_t mask; | ||
1376 | unsigned long flags; | 1375 | unsigned long flags; |
1377 | 1376 | ||
1378 | spin_lock_irqsave(&vector_lock, flags); | 1377 | spin_lock_irqsave(&vector_lock, flags); |
1379 | mask = cpumask_of_cpu(first_cpu(cfg->domain)); | 1378 | send_IPI_mask(cpumask_of_cpu(first_cpu(cfg->domain)), cfg->vector); |
1380 | send_IPI_mask(mask, cfg->vector); | ||
1381 | spin_unlock_irqrestore(&vector_lock, flags); | 1379 | spin_unlock_irqrestore(&vector_lock, flags); |
1382 | 1380 | ||
1383 | return 1; | 1381 | return 1; |