Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 8 Aug 2002 18:36:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 8 Aug 2002 18:36:47 -0400 Received: from ppp-217-133-219-100.dialup.tiscali.it ([217.133.219.100]:21997 "EHLO home.ldb.ods.org") by vger.kernel.org with ESMTP id ; Thu, 8 Aug 2002 18:36:47 -0400 Subject: Re: [PATCH] [2.5] asm-generic/atomic.h and changes to arm, parisc, mips, m68k, sh, cris to use it From: Luca Barbieri To: Roman Zippel Cc: Linux-Kernel ML , Alan Cox In-Reply-To: References: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-WV2ui8jXC1RpKSx4Kpte" X-Mailer: Ximian Evolution 1.0.5 Date: 09 Aug 2002 00:40:17 +0200 Message-Id: <1028846417.1669.95.camel@ldb> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1290 Lines: 43 --=-WV2ui8jXC1RpKSx4Kpte Content-Type: text/plain Content-Transfer-Encoding: 7bit On Fri, 2002-08-09 at 00:27, Roman Zippel wrote: > Hi, > > On 9 Aug 2002, Luca Barbieri wrote: > > > - Didn't implement atomic_{add,sub,inc,dec}_return. This is currently > > not used in the generic kernel but it can be useful. > > m68k has a cmpxchg like instruction, which can be used for that. > > > - Had inline assembly for things the compiler should be able to generate > > on its own > > The compiler can cache the value in a register It shouldn't since it is volatile and the machine has instructions with memory operands. Anyway, let's ignore the m68k-specific parts of the patch. --=-WV2ui8jXC1RpKSx4Kpte Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQA9UvNQdjkty3ft5+cRApkXAKDc0xjWlt8tGH1GtNOvoYPRfhkosACg0sln rFSX4MIrzPuMbxoS2yGpfHg= =J+us -----END PGP SIGNATURE----- --=-WV2ui8jXC1RpKSx4Kpte-- - 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/