From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261662AbTJNWgm (ORCPT ); Tue, 14 Oct 2003 18:36:42 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261909AbTJNWgm (ORCPT ); Tue, 14 Oct 2003 18:36:42 -0400 Received: from rth.ninka.net ([216.101.162.244]:28581 "EHLO rth.ninka.net") by vger.kernel.org with ESMTP id S261662AbTJNWgl (ORCPT ); Tue, 14 Oct 2003 18:36:41 -0400 Date: Tue, 14 Oct 2003 15:35:26 -0700 From: "David S. Miller" To: Tim Hockin Cc: inaky.perez-gonzalez@intel.com, san_madhav@hotmail.com, linux-kernel@vger.kernel.org Subject: Re: Question on atomic_inc/dec Message-Id: <20031014153526.5904b7c7.davem@redhat.com> In-Reply-To: <20031014214437.GA30302@hockin.org> References: <20031014214437.GA30302@hockin.org> X-Mailer: Sylpheed version 0.9.6 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 14 Oct 2003 14:44:37 -0700 Tim Hockin wrote: > Is there any reason NOT to use the atomic ops in user-space? I mean, are > they privileged on some architectures, or ...? Yes, they are. Some use interrupt disabling and a spinlock inside the kernel to implement the atomicity.