From: Benny Sjostrand <gorm@cucumelo.org>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: [PATCH] cs46xx update SMP fixes
Date: Thu, 22 Aug 2002 15:33:05 +0200 [thread overview]
Message-ID: <3D64E811.30005@cucumelo.org> (raw)
In-Reply-To: s5hit23t65p.wl@alsa2.suse.de
>
>
>could you rewrite mutex with spinlock if not too long held?
>
>you cannot use mutex on trigger since this could be called from
>interrupt handlers, too (in order to stop the stream when xrun is
>detected).
>
I believe that the critical sections are too long and will lose to much
performance
on a SMP machines that's why i've choose the mutex instead of spin_locks.
However, that the trigger functions could be called from interrupt
context is new to me,
thanks to pointing it out.
Mutexes are used in _trigger function in current CVS too, not directly
in trigger function,
but in _link and _unlink function called by _trigger, and SMP is broken,
so in some
way we need to fix it.
I'll try to come with another solution, if you have any suggestion how
to solve it, then great.
/Benny
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
next prev parent reply other threads:[~2002-08-22 13:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-22 9:59 [PATCH] cs46xx update SMP fixes Benny Sjostrand
2002-08-22 12:44 ` Takashi Iwai
2002-08-22 13:33 ` Benny Sjostrand [this message]
2002-08-22 13:40 ` Takashi Iwai
2002-08-22 14:13 ` Benny Sjostrand
2002-08-22 14:27 ` Takashi Iwai
[not found] ` <3D652BA1.8010600@cucumelo.org>
2002-08-23 8:21 ` 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=3D64E811.30005@cucumelo.org \
--to=gorm@cucumelo.org \
--cc=alsa-devel@lists.sourceforge.net \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.