All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <rpurdie@openedhand.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Michael Buesch <mb@bu3sch.de>,
	linux-wireless <linux-wireless@vger.kernel.org>,
	Larry Finger <Larry.Finger@lwfinger.net>
Subject: Re: b43 problem with led trigger registration
Date: Sun, 16 Dec 2007 22:32:39 +0000	[thread overview]
Message-ID: <1197844359.4653.39.camel@localhost.localdomain> (raw)
In-Reply-To: <1197843464.6769.43.camel@johannes.berg>

On Sun, 2007-12-16 at 23:17 +0100, Johannes Berg wrote:
> > Eeek, yes, its the LED core's fault.
> > dc47206e552c0850ad11f7e9a1fca0a3c92f5d65 is needed for various reasons
> > but that means the patch below is also needed. Its been compile tested,
> > once its runtime tested I'll push asap.
> 
> Any reason you're using an rw semaphore rather than a simple mutex?
> Nothing here is a hot-path, is it, and the led registrations are
> mutually exclusive anyway, no?

With a rw lock, the for loop of the trigger registration can happen in
parallel with other trigger registrations. This case isn't a hot path as
such but it keeps consistent style with other parts of the LED core
where rw locks are used in hot paths.

It could be replaced with a mutex instead though...

Richard



  reply	other threads:[~2007-12-16 22:32 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-16 16:20 b43 problem with led trigger registration Johannes Berg
2007-12-16 17:19 ` Larry Finger
2007-12-16 17:59   ` Johannes Berg
2007-12-16 18:00   ` John W. Linville
2007-12-16 18:50     ` Johannes Berg
2007-12-16 19:36 ` Michael Buesch
2007-12-16 19:59   ` Johannes Berg
2007-12-16 20:26     ` Michael Buesch
2007-12-16 20:38       ` Johannes Berg
2007-12-16 20:43         ` Richard Purdie
2007-12-16 20:46           ` Johannes Berg
2007-12-16 20:57           ` Michael Buesch
2007-12-16 22:09             ` Richard Purdie
2007-12-16 22:17               ` Johannes Berg
2007-12-16 22:32                 ` Richard Purdie [this message]
2007-12-16 22:39                   ` Johannes Berg
2007-12-16 21:00         ` Johannes Berg
2007-12-16 21:16   ` Larry Finger

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=1197844359.4653.39.camel@localhost.localdomain \
    --to=rpurdie@openedhand.com \
    --cc=Larry.Finger@lwfinger.net \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mb@bu3sch.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.