public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Mundt <lethal@linux-sh.org>
To: Sundar Iyer <sundar.iyer@intel.com>
Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org,
	arjan.van.de.ven@intel.com, german.monroy@intel.com
Subject: Re: [PATCH v1] x86/irq: handle chained interrupts during IRQ migration
Date: Wed, 30 May 2012 11:55:56 +0900	[thread overview]
Message-ID: <20120530025555.GC11445@linux-sh.org> (raw)
In-Reply-To: <1338298808-2265-1-git-send-email-sundar.iyer@intel.com>

On Tue, May 29, 2012 at 07:10:08PM +0530, Sundar Iyer wrote:
> diff --git a/include/linux/irqdesc.h b/include/linux/irqdesc.h
> index 2d921b3..7880722 100644
> --- a/include/linux/irqdesc.h
> +++ b/include/linux/irqdesc.h
> @@ -120,6 +120,16 @@ static inline int irq_has_action(unsigned int irq)
>  	return desc->action != NULL;
>  }
>  
> +/*
> + * Test to see if the IRQ is chained; it would not be requested and hence
> + * _IRQ_NOREQUEST would be set
> + */
> +static inline int irq_is_chained(unsigned int irq)
> +{
> +	struct irq_desc *desc = irq_to_desc(irq);
> +	return !(desc->status_use_accessors & IRQ_NOREQUEST);
> +}
> +

This approach looks highly suspect. There are many non-chained cases that
are also NOREQUEST. Chained IRQs are at the very least NOREQUEST,
NOPROBE, and NOTHREAD. You could test a mask of those and at least have a
vague change of not catching other unrelated IRQs. It would still be a
hack though, given that none of those status flags in and of themselves
require an IRQ to be chained.

  reply	other threads:[~2012-05-30  2:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-29 13:40 [PATCH v1] x86/irq: handle chained interrupts during IRQ migration Sundar Iyer
2012-05-30  2:55 ` Paul Mundt [this message]
2012-05-31  7:30 ` Thomas Gleixner
2012-05-31  7:36   ` Iyer, Sundar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120530025555.GC11445@linux-sh.org \
    --to=lethal@linux-sh.org \
    --cc=arjan.van.de.ven@intel.com \
    --cc=german.monroy@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sundar.iyer@intel.com \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox