Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262136AbVERJQO (ORCPT ); Wed, 18 May 2005 05:16:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262137AbVERJQO (ORCPT ); Wed, 18 May 2005 05:16:14 -0400 Received: from mail.tv-sign.ru ([213.234.233.51]:34966 "EHLO several.ru") by vger.kernel.org with ESMTP id S262136AbVERJQL (ORCPT ); Wed, 18 May 2005 05:16:11 -0400 Message-ID: <428B09A6.DD188E8D@tv-sign.ru> Date: Wed, 18 May 2005 13:23:50 +0400 From: Oleg Nesterov X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.20 i686) X-Accept-Language: en MIME-Version: 1.0 To: Christoph Lameter Cc: linux-kernel@vger.kernel.org, Mitchell Blank Jr , Andrew Morton Subject: Re: [PATCH] Optimize sys_times for a single thread process 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 Content-Length: 488 Lines: 16 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)? Oleg. - 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/