Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030232AbVINQRE (ORCPT ); Wed, 14 Sep 2005 12:17:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030234AbVINQRE (ORCPT ); Wed, 14 Sep 2005 12:17:04 -0400 Received: from scrub.xs4all.nl ([194.109.195.176]:55526 "EHLO scrub.xs4all.nl") by vger.kernel.org with ESMTP id S1030232AbVINQQ7 (ORCPT ); Wed, 14 Sep 2005 12:16:59 -0400 Date: Wed, 14 Sep 2005 18:16:47 +0200 (CEST) From: Roman Zippel X-X-Sender: roman@scrub.home To: Nick Piggin cc: Linux Kernel Mailing List , Dipankar Sarma Subject: Re: [PATCH 2/5] atomic: introduce atomic_inc_not_zero In-Reply-To: <4328387E.6050701@yahoo.com.au> Message-ID: References: <43283825.7070309@yahoo.com.au> <4328387E.6050701@yahoo.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 599 Lines: 17 Hi, On Thu, 15 Sep 2005, Nick Piggin wrote: > Also needs work on those same architectures. Other architectures > might want to look at providing a more optimal implementation. IMO a rather pointless primitive, unless there is a cpu architecture which has a inc_not_zero instruction, otherwise it will always be the same as using cmpxchg. bye, Roman - 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/