All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: linux-mips@linux-mips.org, linux-kernel@vger.kernel.org
Subject: Re: MIPS atomic_set_mask and atomic_clear_mask
Date: Thu, 31 Jan 2013 11:26:53 +0100	[thread overview]
Message-ID: <20130131102653.GA17834@linux-mips.org> (raw)
In-Reply-To: <20130131034320.GA15216@gentoo.L3L6.loongson.cn>

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

      reply	other threads:[~2013-01-31 10:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-31  3:43 MIPS atomic_set_mask and atomic_clear_mask yili0568
2013-01-31 10:26 ` Ralf Baechle [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=20130131102653.GA17834@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@linux-mips.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.