public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg Ungerer <gerg@snapgear.com>
To: Akinobu Mita <akinobu.mita@gmail.com>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] m68knommu: use asm-generic/bitops/ext2-atomic.h
Date: Wed, 20 Apr 2011 10:29:42 +1000	[thread overview]
Message-ID: <4DAE28F6.30805@snapgear.com> (raw)
In-Reply-To: <1303048649-28265-1-git-send-email-akinobu.mita@gmail.com>

Hi Akinobu,

On 17/04/11 23:57, Akinobu Mita wrote:
> m68knommu can use generic implementation of ext2 atomic bitops.
>
> Signed-off-by: Akinobu Mita<akinobu.mita@gmail.com>
> Cc: Greg Ungerer<gerg@uclinux.org>

That looks good to me, so:

Acked-by: Greg Ungerer<gerg@uclinux.org>

Do you want me to add it to the m68knommu git tree,
and pass to Linus in the next merge window?

Regards
Greg


> ---
>   arch/m68k/include/asm/bitops_no.h |   18 +-----------------
>   1 files changed, 1 insertions(+), 17 deletions(-)
>
> diff --git a/arch/m68k/include/asm/bitops_no.h b/arch/m68k/include/asm/bitops_no.h
> index 7d3779f..6b0e2d3 100644
> --- a/arch/m68k/include/asm/bitops_no.h
> +++ b/arch/m68k/include/asm/bitops_no.h
> @@ -246,23 +246,7 @@ static inline int __test_and_clear_bit_le(int nr, volatile void *addr)
>   	return retval;
>   }
>
> -#define ext2_set_bit_atomic(lock, nr, addr)		\
> -	({						\
> -		int ret;				\
> -		spin_lock(lock);			\
> -		ret = __test_and_set_bit_le((nr), (addr));	\
> -		spin_unlock(lock);			\
> -		ret;					\
> -	})
> -
> -#define ext2_clear_bit_atomic(lock, nr, addr)		\
> -	({						\
> -		int ret;				\
> -		spin_lock(lock);			\
> -		ret = __test_and_clear_bit_le((nr), (addr));	\
> -		spin_unlock(lock);			\
> -		ret;					\
> -	})
> +#include<asm-generic/bitops/ext2-atomic.h>
>
>   static inline int test_bit_le(int nr, const volatile void *addr)
>   {


-- 
------------------------------------------------------------------------
Greg Ungerer  --  Principal Engineer        EMAIL:     gerg@snapgear.com
SnapGear Group, McAfee                      PHONE:       +61 7 3435 2888
8 Gardner Close                             FAX:         +61 7 3217 5323
Milton, QLD, 4064, Australia                WEB: http://www.SnapGear.com

  reply	other threads:[~2011-04-20  0:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-17 13:57 [PATCH] m68knommu: use asm-generic/bitops/ext2-atomic.h Akinobu Mita
2011-04-20  0:29 ` Greg Ungerer [this message]
2011-04-20  6:16   ` Akinobu Mita

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=4DAE28F6.30805@snapgear.com \
    --to=gerg@snapgear.com \
    --cc=akinobu.mita@gmail.com \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox