linux-mips
[Top] [All Lists]

Re: [PATCH 1/2] MIPS: New macro smp_mb__before_llsc.

To: David Daney <ddaney@caviumnetworks.com>
Subject: Re: [PATCH 1/2] MIPS: New macro smp_mb__before_llsc.
From: Ralf Baechle <ralf@linux-mips.org>
Date: Wed, 13 Jan 2010 13:32:58 +0100
Cc: linux-mips@linux-mips.org
In-reply-to: <1262999864-2353-1-git-send-email-ddaney@caviumnetworks.com>
References: <4B47D8ED.1020006@caviumnetworks.com> <1262999864-2353-1-git-send-email-ddaney@caviumnetworks.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.20 (2009-08-17)
On Fri, Jan 08, 2010 at 05:17:43PM -0800, David Daney wrote:

> Replace some instances of smp_llsc_mb() with a new macro
> smp_mb__before_llsc().  It is used before ll/sc sequences that are
> documented as needing write barrier semantics.
> 
> The default implementation of smp_mb__before_llsc() is just
> smp_llsc_mb(), so there are no changes in semantics.
> 
> Also simplify definition of smp_mb(), smp_rmb(), and smp_wmb() to be
> just barrier() in the non-SMP case.

Queued for 2.6.34.  Thanks!

  Ralf

<Prev in Thread] Current Thread [Next in Thread>