From: Finn Thain <fthain@telegraphics.com.au>
To: David Miller <davem@davemloft.net>
Cc: linux-m68k@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH] macmace: disable only the dma interrupt
Date: Sun, 11 Sep 2011 20:02:17 +1000 (EST) [thread overview]
Message-ID: <alpine.LNX.2.00.1109111958310.2745@nippy.intranet> (raw)
In-Reply-To: <20110910.143046.520109083086760748.davem@davemloft.net>
On Sat, 10 Sep 2011, David Miller wrote:
> From: Finn Thain <fthain@telegraphics.com.au>
> Date: Sun, 11 Sep 2011 01:02:16 +1000 (EST)
>
> > Don't disable all interrupts, just disable the relevant one.
> >
> > Also move a couple of printk calls outside of local_irq_save/restore.
> >
> > Tested on a Quadra 660av.
> >
> > Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
>
> Using disable_irq() is very expensive, and when done from an interrupt
> handler can deadlock especially on SMP (which I understand might not be
> relevant here).
>
> I really can't see why you'd do things this way, especially since
> interrupt handlers under Linux now unconditionally always run with cpu
> interrupts disabled.
I wasn't aware of this (I was under the impression that a higher priority
interrupt could be serviced). Please disregard this patch.
Finn
prev parent reply other threads:[~2011-09-11 10:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-10 15:02 [PATCH] macmace: disable only the dma interrupt Finn Thain
2011-09-10 18:30 ` David Miller
2011-09-11 10:02 ` Finn Thain [this message]
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=alpine.LNX.2.00.1109111958310.2745@nippy.intranet \
--to=fthain@telegraphics.com.au \
--cc=davem@davemloft.net \
--cc=linux-m68k@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/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