From: Pavel Machek <pavel@suse.cz>
To: Chris Rankin <rankinc@zip.com.au>,
linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org
Subject: Re: [PATCH](s): Use spinlocks instead of STI/CLI in SoundBlaster
Date: Sat, 27 Jan 2001 11:26:29 +0100 [thread overview]
Message-ID: <20010127112629.B163@bug.ucw.cz> (raw)
In-Reply-To: <200101260642.f0Q6gR419611@wellhouse.underworld>
In-Reply-To: <200101260642.f0Q6gR419611@wellhouse.underworld>; from Chris Rankin on Fri, Jan 26, 2001 at 05:42:27PM +1100
Hi!
> I hear on the grapevine that 2.4 kernel modules should use spinlocks
> in preference to cli() and sti(). Well I'm not sure how big a win it
> is, particularly on a UP machine, but here's a patch for the
> SoundBlaster. I've added a spinlock_t to the "struct b_devc" so that
> multiple SoundBlasters each get their own lock. After all, each SB has
> its own IRQ and IO, correct?
>
> There also seems to be something here called a Jazz16. This has a
> global lock because it looks like there can only be one of them.
Should not you initialize spinlock?
> --- linux-2.4.0/drivers/sound/sb.h.orig Fri Jan 26 13:57:40 2001
> +++ linux-2.4.0/drivers/sound/sb.h Fri Jan 26 13:58:42 2001
> @@ -137,6 +137,8 @@
> void (*midi_input_intr) (int dev, unsigned char data);
> void *midi_irq_cookie; /* IRQ cookie for the midi */
>
> + spinlock_t lock;
> +
Pavel
--
I'm pavel@ucw.cz. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at discuss@linmodems.org
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2001-01-27 10:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-26 6:42 Chris Rankin
2001-01-27 10:26 ` Pavel Machek [this message]
2001-01-27 11:02 ` Chris Rankin
[not found] <3A712AA4.13B912AD@uow.edu.au>
2001-01-26 10:25 ` Chris Rankin
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=20010127112629.B163@bug.ucw.cz \
--to=pavel@suse.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=rankinc@zip.com.au \
/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