Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262395AbVERWGJ (ORCPT ); Wed, 18 May 2005 18:06:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262394AbVERWGJ (ORCPT ); Wed, 18 May 2005 18:06:09 -0400 Received: from graphe.net ([209.204.138.32]:51980 "EHLO graphe.net") by vger.kernel.org with ESMTP id S262401AbVERWFo (ORCPT ); Wed, 18 May 2005 18:05:44 -0400 Date: Wed, 18 May 2005 15:05:39 -0700 (PDT) From: Christoph Lameter X-X-Sender: christoph@graphe.net To: Oleg Nesterov cc: linux-kernel@vger.kernel.org, Mitchell Blank Jr , Andrew Morton Subject: Re: [PATCH] Optimize sys_times for a single thread process In-Reply-To: <428B09A6.DD188E8D@tv-sign.ru> Message-ID: References: <428B09A6.DD188E8D@tv-sign.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Score: -5.9 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 678 Lines: 22 On Wed, 18 May 2005, Oleg Nesterov wrote: > Christoph Lameter wrote: > > > > +#ifdef CONFIG_SMP > > + if (current == next_thread(current)) { > > + /* > > + * Single thread case without the use of any locks. > > A nitpick, but wouldn't be it clearer to to use > thread_group_empty(current)? The thread ist needs to contain only one element which is current. thread_group_empty checks for no threads. Do we need a new macro? - 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/