lkml.org 
[lkml]   [2008]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [patch 11/26] x64, x2apic/intr-remap: generic irq migration support from process context
    Suresh Siddha <suresh.b.siddha@intel.com> writes:

    > Generic infrastructure for migrating the irq from the process context in the
    > presence of CONFIG_GENERIC_PENDING_IRQ.
    >
    > This will be used later for migrating irq in the presence of
    > interrupt-remapping.

    Why the API difference between IRQ_MOVE_PCNTXT set affinity handlers and
    !CONFIG_GENERIC_PENDING_IRQ handlers?


    > #ifdef CONFIG_GENERIC_PENDING_IRQ
    > - set_pending_irq(irq, cpumask);
    > + if (desc->status & IRQ_MOVE_PCNTXT) {
    > + unsigned long flags;
    > +
    > + spin_lock_irqsave(&desc->lock, flags);
    > + desc->chip->set_affinity(irq, cpumask);
    > + spin_unlock_irqrestore(&desc->lock, flags);
    > + } else
    > + set_pending_irq(irq, cpumask);
    > #else
    > desc->affinity = cpumask;
    > desc->chip->set_affinity(irq, cpumask);
    >
    > --


    \
     
     \ /
      Last update: 2008-07-11 01:15    [W:0.022 / U:30.428 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site