Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 29 Jan 2002 19:21:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 29 Jan 2002 19:21:31 -0500 Received: from waste.org ([209.173.204.2]:2277 "EHLO waste.org") by vger.kernel.org with ESMTP id ; Tue, 29 Jan 2002 19:20:55 -0500 Date: Tue, 29 Jan 2002 18:20:44 -0600 (CST) From: Oliver Xymoron To: Linus Torvalds cc: Rusty Russell , Subject: Re: [PATCH] per-cpu areas for 2.5.3-pre6 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Jan 2002, Linus Torvalds wrote: > On Tue, 29 Jan 2002, Oliver Xymoron wrote: > > > > Seems like we could do slightly better to have these local areas mapped to > > the same virtual address on each processor, which does away with the need > > for an entire level of indirection. > > No no no. > > The reason it is a stupid idea is that if you do it, you can no longer > share page tables between CPU's (unless all CPU's you support have TLB > fill in software). Yes, obviously. Nearly as good would be replacing the current logic for figuring out the current processor id through current with logic to access the per-cpu data. The primary use of that id is indexing that data anyway. -- "Love the dolphins," she advised him. "Write by W.A.S.T.E.." - 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/