[Top] [All Lists]

Re: [PATCH] atomic: add *_dec_not_zero

To: "Russell King - ARM Linux" <>
Subject: Re: [PATCH] atomic: add *_dec_not_zero
From: Sven Eckelmann <>
Date: Sun, 8 May 2011 11:33:48 +0200
Cc:,,,,,,,,,, Chris Metcalf <>, David Howells <>,,,,,,,
Dkim-signature: v=1; a=rsa-sha256; c=simple/simple;; s=mail; t=1304847247; bh=ZsDp5I2ahHMgchtif3vZZU35EkCa+97w9vNVwQ5M3xA=; h=From:To:Subject:Date:Cc:References:In-Reply-To:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-Id; b=UUW1EBfLxJNFvY/LDh8PBm8rGCZKtQvto51iZFwmd/nCE61DgW1bc0WMiUiJXJX9m /Lvq69R/oWN9CGVqFmqfpq8AoTUoP5yxfkdJ3SaXbNFEnNoBuSjeG3Iyced9l5r+oo GZ9D0K4j7Cx4IHK5bti3bLQwSBcoZ3B40M7iNn8o=
In-reply-to: <>
Original-recipient: rfc822;
References: <> <>
User-agent: KMail/1.13.7 (Linux/2.6.38-2-amd64; KDE/4.6.2; x86_64; ; )
Russell King - ARM Linux wrote:
> Do we need atomic_dec_not_zero() in every arch header - is there no
> generic header which it could be added to?

Mike Frysinger already tried to answer it in 
> that's what asm-generic is for.  if the arch isnt using it, it's
> either because the arch needs to convert to it, or they're using SMP
> and asm-generic doesnt yet support that for atomic.h.
> for example, the Blackfin port only needed updating for the SMP case.
> in the non-SMP case, we're getting the def from asm-generic/atomic.h.
> -mike

Feel free to change that but I just followed the style used by all other 
macros and will not redesign the complete atomic*.h idea.


Attachment: signature.asc
Description: This is a digitally signed message part.

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