Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756818Ab0BRK0x (ORCPT ); Thu, 18 Feb 2010 05:26:53 -0500 Received: from casper.infradead.org ([85.118.1.10]:57444 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755859Ab0BRK0v (ORCPT ); Thu, 18 Feb 2010 05:26:51 -0500 Subject: Re: [PATCH 08/10] x86-32: support atomic64_t on 386/486 UP/SMP From: Peter Zijlstra To: Luca Barbieri Cc: mingo@elte.hu, hpa@zytor.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org In-Reply-To: <1266406962-17463-9-git-send-email-luca@luca-barbieri.com> References: <1266406962-17463-1-git-send-email-luca@luca-barbieri.com> <1266406962-17463-9-git-send-email-luca@luca-barbieri.com> Content-Type: text/plain; charset="UTF-8" Date: Thu, 18 Feb 2010 11:25:46 +0100 Message-ID: <1266488746.26719.120.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 761 Lines: 16 On Wed, 2010-02-17 at 12:42 +0100, Luca Barbieri wrote: > This patch makes atomic64 use either the generic implementation or > the rewritten cmpxchg8b one just introduced by inserting a "call" to > either, using the alternatives system to dynamically switch the calls. > > This allows to use atomic64_t on 386/486 which lack cmpxchg8b IIRC we dropped