mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Takashi Iwai <tiwai@suse.de>
Cc: linux-kernel@vger.kernel.org, thomas@undata.org
Subject: Re: [PATCH] Fix shared interrupt handling of SA_INTERRUPT and SA_SAMPLE_RANDOM
Date: Wed, 25 Aug 2004 13:41:12 -0700	[thread overview]
Message-ID: <20040825134112.5aefaf8e.akpm@osdl.org> (raw)
In-Reply-To: <s5hoekzfowc.wl@alsa2.suse.de>

Takashi Iwai <tiwai@suse.de> wrote:
>
> Anyway, suppressing the unnecessary call of add_interrupt_randomness()
>  should be still valid.  The reduced patch is below.
> 
> 
>  Takashi
> 
>  --- linux-2.6.8.1/arch/i386/kernel/irq.c-dist	2004-08-25 13:13:05.153227112 +0200
>  +++ linux-2.6.8.1/arch/i386/kernel/irq.c	2004-08-25 13:13:34.760726088 +0200
>  @@ -220,14 +220,16 @@ asmlinkage int handle_IRQ_event(unsigned
>   		struct pt_regs *regs, struct irqaction *action)
>   {
>   	int status = 1;	/* Force the "do bottom halves" bit */
>  -	int retval = 0;
>  +	int ret, retval = 0;
>   
>   	if (!(action->flags & SA_INTERRUPT))
>   		local_irq_enable();
>   
>   	do {
>  -		status |= action->flags;
>  -		retval |= action->handler(irq, action->dev_id, regs);
>  +		ret = action->handler(irq, action->dev_id, regs);
>  +		if (ret)
>  +			status |= action->flags;
>  +		retval |= ret;
>   		action = action->next;
>   	} while (action);
>   	if (status & SA_SAMPLE_RANDOM)

Shouldn't that be `if (ret == IRQ_HANDLED)'?

Probably I'll need to pass this to lots of other architecture maintainers
to make the same change.  Please write a nice changelog so they understand
what your patch does.



  reply	other threads:[~2004-08-25 20:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-23 17:10 Takashi Iwai
2004-08-23 17:29 ` Takashi Iwai
2004-08-23 18:09   ` Zwane Mwaikambo
2004-08-25  3:45 ` Andrew Morton
2004-08-25 11:17   ` Takashi Iwai
2004-08-25 20:41     ` Andrew Morton [this message]
2004-08-26 12:50       ` Takashi Iwai
2004-08-26 14:04         ` Russell King
2004-08-26 14:10           ` Takashi Iwai
2004-08-26 14:18             ` Russell King
2004-08-26 14:27               ` Takashi Iwai

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=20040825134112.5aefaf8e.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=thomas@undata.org \
    --cc=tiwai@suse.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

Powered by JetHome