lkml.org 
[lkml]   [2003]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRE: Updated MSI Patches
On Tue, 12 Aug 2003, Nakajima, Jun wrote:

> static unsigned int startup_edge_ioapic_vector(unsigned int vector)
> {
> int was_pending = 0;
> unsigned long flags;
> int irq = vector_to_irq (vector);
>
> spin_lock_irqsave(&ioapic_lock, flags);
> if (irq < 16) {
> disable_8259A_irq(irq);
> if (i8259A_irq_pending(irq))
> was_pending = 1;
> }
> __unmask_IO_APIC_irq(irq);
> spin_unlock_irqrestore(&ioapic_lock, flags);
>
> return was_pending;
> }

Hmm that doesn't look too bad, i like, ok another question, do you think
this could be made to scale on systems with lots of devices requiring
vectors?

Thanks,
Zwane

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.023 / U:1.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site