netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Mark Asselstine <mark.asselstine@windriver.com>
Cc: kernel-janitors@vger.kernel.org, netdev@vger.kernel.org,
	kkeil@suse.de, asselsm@gmail.com, mark.asselstine@windriver.com
Subject: Re: [PATCH] Remove cli()/sti() calls from HYSDN driver.
Date: Wed, 7 May 2008 15:38:00 -0700	[thread overview]
Message-ID: <20080507153800.16537fbc.akpm@linux-foundation.org> (raw)
In-Reply-To: <1209673012-10500-1-git-send-email-mark.asselstine@windriver.com>

On Thu,  1 May 2008 16:16:52 -0400
Mark Asselstine <mark.asselstine@windriver.com> wrote:

> >From looking at this driver the use of cli()/sti() within the do/while
> was a way to ensure interrupts were only disabled for short periods of
> time while the bulk of the time interrupts were free to occur. The
> use of the spin lock has eliminated the need to play with interrupts
> in this way while still allowing for IO to be protected.

OK.  If we still want the interrupt-latency optimisation then we should
switch over to using local_irq_disable().  But probably nobody cares.

> The remaining 3 sti() calls seem unneeded now that at no other point
> in the driver is there a call to cli().
> 
> Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
> ---
>  drivers/isdn/hysdn/boardergo.c |   14 +++++---------

So... can we now do this?


--- a/drivers/isdn/hysdn/Kconfig~a
+++ a/drivers/isdn/hysdn/Kconfig
@@ -3,7 +3,7 @@
 #
 config HYSDN
 	tristate "Hypercope HYSDN cards (Champ, Ergo, Metro) support (module only)"
-	depends on m && PROC_FS && PCI && BROKEN_ON_SMP
+	depends on m && PROC_FS && PCI
 	help
 	  Say Y here if you have one of Hypercope's active PCI ISDN cards
 	  Champ, Ergo and Metro. You will then get a module called hysdn.
_


  parent reply	other threads:[~2008-05-07 22:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-01 20:16 [PATCH] Remove cli()/sti() calls from HYSDN driver Mark Asselstine
2008-05-02 13:15 ` Karsten Keil
2008-05-07 16:25   ` M. Asselstine
2008-05-07 17:05     ` Andrew Morton
2008-05-07 22:38 ` Andrew Morton [this message]
2008-05-08  8:33   ` Karsten Keil
2008-05-08 11:53     ` Mark Asselstine

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=20080507153800.16537fbc.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=asselsm@gmail.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=kkeil@suse.de \
    --cc=mark.asselstine@windriver.com \
    --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;
as well as URLs for NNTP newsgroup(s).