From: Paul Mundt <lethal@linux-sh.org>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH 2/6 v2] sh_mobile_meram: MERAM framework for LCDC
Date: Mon, 23 May 2011 06:49:49 +0000 [thread overview]
Message-ID: <20110523064949.GI5206@linux-sh.org> (raw)
In-Reply-To: <1305717011-20742-3-git-send-email-dhobsong@igel.co.jp>
On Wed, May 18, 2011 at 08:10:07PM +0900, Damian Hobson-Garcia wrote:
> +/*
> + * mark the specified ICB as used
> + */
> +
> +static inline void meram_mark(struct sh_mobile_meram_priv *priv,
> + struct sh_mobile_meram_icb *new)
> +{
> + int n;
> +
> + if (new->marker_icb < 0 || new->cache_icb < 0)
> + return;
> +
> + __set_bit(new->marker_icb, &priv->used_icb);
> + __set_bit(new->cache_icb, &priv->used_icb);
> +
A minor nit, but you may wish to document the fact that the _mark/unmark
calls expect the caller to be holding &priv->lock in order to make it
obvious why the __xxx_bit() accessors are safe. Given that the MERAM
stuff applies to SMP parts too, someone could be in for a nasty surprise
with regards to write visibility without the explicit barrier otherwise.
You can do this in a follow-up patch though given that the current patch
at least gets the utilization sufficiently correct.
prev parent reply other threads:[~2011-05-23 6:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-18 11:10 [PATCH 2/6 v2] sh_mobile_meram: MERAM framework for LCDC Damian Hobson-Garcia
2011-05-23 6:49 ` Paul Mundt [this message]
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=20110523064949.GI5206@linux-sh.org \
--to=lethal@linux-sh.org \
--cc=linux-sh@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 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.