Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751102AbVLLEvz (ORCPT ); Sun, 11 Dec 2005 23:51:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751103AbVLLEvz (ORCPT ); Sun, 11 Dec 2005 23:51:55 -0500 Received: from cantor.suse.de ([195.135.220.2]:47526 "EHLO mx1.suse.de") by vger.kernel.org with ESMTP id S1751102AbVLLEvy (ORCPT ); Sun, 11 Dec 2005 23:51:54 -0500 Date: Mon, 12 Dec 2005 05:51:46 +0100 From: Andi Kleen To: Nick Piggin Cc: Andi Kleen , Christoph Lameter , linux-kernel@vger.kernel.org, Hugh Dickins , linux-mm@kvack.org, Marcelo Tosatti Subject: Re: [RFC 1/6] Framework Message-ID: <20051212045146.GA11190@wotan.suse.de> References: <20051210005440.3887.34478.sendpatchset@schroedinger.engr.sgi.com> <20051210005445.3887.94119.sendpatchset@schroedinger.engr.sgi.com> <439CF2A2.60105@yahoo.com.au> <20051212035631.GX11190@wotan.suse.de> <439CF93D.5090207@yahoo.com.au> <20051212042142.GZ11190@wotan.suse.de> <439CFC67.4030107@yahoo.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <439CFC67.4030107@yahoo.com.au> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1110 Lines: 31 > >With local_t you don't need to turn off interrupts > >anymore. > > > > Then you can't use __local_xxx, and so many architectures will use > atomic instructions (the ones who don't are the ones with tripled > cacheline footprint of this structure). They are wrong then. atomic instructions is the wrong implementation and they would be better off with asm-generic. If anything they should use per_cpu counters for interrupts and use seq locks. Or just turn off the interrupts for a short time in the low level code. > > Sure i386 and x86-64 are happy, but this would probably slow down > most other architectures. I think it is better to fix the other architectures then - if they are really using a full scale bus lock for this they're just wrong. I don't think it is a good idea to do a large change in generic code just for dumb low level code. -Andi - 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/