linux-mips
[Top] [All Lists]

Re: MIPS atomic_set_mask and atomic_clear_mask

To: linux-mips@linux-mips.org, linux-kernel@vger.kernel.org
Subject: Re: MIPS atomic_set_mask and atomic_clear_mask
From: Ralf Baechle <ralf@linux-mips.org>
Date: Thu, 31 Jan 2013 11:26:53 +0100
In-reply-to: <20130131034320.GA15216@gentoo.L3L6.loongson.cn>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
References: <20130131034320.GA15216@gentoo.L3L6.loongson.cn>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.21 (2010-09-15)
On Thu, Jan 31, 2013 at 11:43:21AM +0800, yili0568@gmail.com wrote:

> Hello, everybody:
>      Does MIPS need the functions atomic_set_mask and atomic_clear_mask?
>      Or how can I implement these functions.

No, it doesn't need them.  a quick grep would have shown that all users
are either other architectures or architecture-specific code.

As for a possible implementation, there are plenty of examples in
<asm/bitops.h> and <asm/atomic.h> that would need only minor modification.

  Ralf

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