From: Michal Schmidt <mschmidt@redhat.com>
To: Daniel Walker <dwalker@mvista.com>
Cc: Ingo Molnar <mingo@elte.hu>,
akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
linux@bohmer.net, jonathan@jonmasters.org
Subject: Re: [PATCH] isapnp driver semaphore to mutex
Date: Mon, 3 Dec 2007 20:11:59 +0100 [thread overview]
Message-ID: <20071203201159.365d49d8@hammerfall> (raw)
In-Reply-To: <1196706902.1568.11.camel@jnielson-xp.ddns.mvista.com>
Dne Mon, 03 Dec 2007 10:35:01 -0800
Daniel Walker <dwalker@mvista.com> napsal(a):
> Speaking of automating.. I created a little .vimrc add-on which helps
> doing sem2mutex type changes. Here's the chunk I added,
>
> function Semtomutex( lo )
> exe '%s/down(&'.a:lo.')/mutex_lock\(\&'.a:lo.'\)/g'
> exe '%s/down_trylock(&'.a:lo.')/mutex_trylock\(\&'.a:lo.'\)/g'
>From the comment above mutex_trylock():
* NOTE: this function follows the spin_trylock() convention, so
* it is negated to the down_trylock() return values! Be careful
* about this when converting semaphore users to mutexes.
Michal
next prev parent reply other threads:[~2007-12-03 19:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-03 15:38 [PATCH] isapnp driver semaphore to mutex Daniel Walker
2007-12-03 15:38 ` Daniel Walker
2007-12-03 15:57 ` Ingo Molnar
2007-12-03 15:52 ` Daniel Walker
2007-12-03 16:47 ` Ingo Molnar
2007-12-03 18:35 ` Daniel Walker
2007-12-03 19:11 ` Michal Schmidt [this message]
2007-12-03 19:20 ` Daniel Walker
2007-12-03 19:25 ` Daniel Walker
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=20071203201159.365d49d8@hammerfall \
--to=mschmidt@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=dwalker@mvista.com \
--cc=jonathan@jonmasters.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@bohmer.net \
--cc=mingo@elte.hu \
/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.