Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751974Ab1EDIG7 (ORCPT ); Wed, 4 May 2011 04:06:59 -0400 Received: from mx0.aculab.com ([213.249.233.131]:36990 "HELO mx0.aculab.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751788Ab1EDIGw convert rfc822-to-8bit (ORCPT ); Wed, 4 May 2011 04:06:52 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT Subject: RE: [PATCH] atomic: add *_dec_not_zero Date: Wed, 4 May 2011 09:05:53 +0100 Message-ID: In-Reply-To: <1304458235-28473-1-git-send-email-sven@narfation.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] atomic: add *_dec_not_zero Thread-Index: AcwJ3EAltH6AZTKdQ3qO9QnukRcgpAAVa6Mw From: "David Laight" To: "Sven Eckelmann" , Cc: , , , , , , , , , "Chris Metcalf" , "David Howells" , , , , , , , Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 667 Lines: 17 > Introduce an *_dec_not_zero operation. Make this a special case of > *_add_unless because batman-adv uses atomic_dec_not_zero in different > places like re-broadcast queue or aggregation queue management. There > are other non-final patches which may also want to use this macro. Isn't there a place where a default definition of this can be defined? Instead of adding it separately to every architecture. David -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/