Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758380Ab1EaUVe (ORCPT ); Tue, 31 May 2011 16:21:34 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:63080 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753446Ab1EaUVd (ORCPT ); Tue, 31 May 2011 16:21:33 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=UrmvYQr+Vt94+U3+Mk0HDpQUA1aBBxWvyRskvBSvPJTGYoxPoNP+z0n2W9v6s7UmzO gqL08jlmGzyfZb13EL5//7ZOqOJM0EkrV/l+s6KytveJGAHTNh9mAunLQq5toBPqJAeI Tp4WZh3mzP25iKHkKw+2PVt0gUAniOKzcYvPs= MIME-Version: 1.0 In-Reply-To: <1306869046-20172-2-git-send-email-asharma@fb.com> References: <1306869046-20172-1-git-send-email-asharma@fb.com> <1306869046-20172-2-git-send-email-asharma@fb.com> From: Mike Frysinger Date: Tue, 31 May 2011 16:21:12 -0400 Message-ID: Subject: Re: [PATCH 2/2] atomic: move atomic_add_unless to generic code To: Arun Sharma Cc: linux-kernel@vger.kernel.org, Ingo Molnar , David Miller , Andrew Morton , Eric Dumazet Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 647 Lines: 14 On Tue, May 31, 2011 at 15:10, Arun Sharma wrote: > This is in preparation for more generic atomic > primitives based on __atomic_add_unless. i think you might have to have those primitives in place before this patch makes sense. the only thing this does is hoist a single comparison out of arch atomic.h's and into linux/atomic.h. this savings alone looks simply like over engineering to me. -mike -- 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/