Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753582AbYAQRuS (ORCPT ); Thu, 17 Jan 2008 12:50:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752088AbYAQRuF (ORCPT ); Thu, 17 Jan 2008 12:50:05 -0500 Received: from smtp2.linux-foundation.org ([207.189.120.14]:39144 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751246AbYAQRuD (ORCPT ); Thu, 17 Jan 2008 12:50:03 -0500 Date: Thu, 17 Jan 2008 09:46:59 -0800 (PST) From: Linus Torvalds To: Mathieu Desnoyers cc: Paul Mackerras , john stultz , Steven Rostedt , LKML , Ingo Molnar , Andrew Morton , Peter Zijlstra , Christoph Hellwig , Gregory Haskins , Arnaldo Carvalho de Melo , Thomas Gleixner , Tim Bird , Sam Ravnborg , "Frank Ch. Eigler" , Steven Rostedt , Daniel Walker Subject: Re: [RFC PATCH 16/22 -v2] add get_monotonic_cycles In-Reply-To: <20080117041443.GA9513@Krystal> Message-ID: References: <20080116031730.GA2164@Krystal> <20080116145604.GB31329@Krystal> <1f1b08da0801161436k4a7ac1e3kd83590951e7bebb9@mail.gmail.com> <1200523867.6127.5.camel@localhost.localdomain> <1200536889.6127.52.camel@localhost.localdomain> <20080117024000.GD2322@Krystal> <20080117025004.GE2322@Krystal> <18318.51622.37470.246611@cargo.ozlabs.ibm.com> <20080117041443.GA9513@Krystal> User-Agent: Alpine 1.00 (LFD 882 2007-12-20) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 745 Lines: 23 On Wed, 16 Jan 2008, Mathieu Desnoyers wrote: > > Or could we map a per-thread page that would contradict this > "definition" ? Over my dead body. It's been done before. Many times. It's horrible, and means that you need to flush the TLB on context switches between threads and cannot share the same hw page tables across CPU's (since now different CPU's run different threads). It generally makes threads pointless. You might as well implement them as processes with shared mmap. Linus -- 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/