lkml.org 
[lkml]   [2006]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] Add SA_PERCPU_IRQ flag support
    On Thu, Mar 16, 2006 at 06:31:14PM -0600, Dimitri Sivanich wrote:
    > The generic request_irq/setup_irq code should support the SA_PERCPU_IRQ flag.
    >
    > Not sure why it was left out, but this patch adds that support.
    >
    > Signed-off-by: Dimitri Sivanich <sivanich@sgi.com>
    >
    > Index: linux/kernel/irq/manage.c
    > ===================================================================
    > --- linux.orig/kernel/irq/manage.c 2006-03-16 14:05:27.957927445 -0600
    > +++ linux/kernel/irq/manage.c 2006-03-16 14:06:02.283661867 -0600
    > @@ -201,6 +201,9 @@ int setup_irq(unsigned int irq, struct i
    > * The following block of code has to be executed atomically
    > */
    > spin_lock_irqsave(&desc->lock,flags);
    > + if (new->flags & SA_PERCPU_IRQ) {
    > + desc->status |= IRQ_PER_CPU;
    > + }

    looks good, although the braces aren't really needed for single-line
    conditionals.

    -
    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: 2006-03-17 03:12    [W:0.021 / U:60.456 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site