Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 16 Apr 2001 08:04:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 16 Apr 2001 08:04:48 -0400 Received: from cisco7500-mainGW.gts.cz ([194.213.32.131]:48389 "EHLO bug.ucw.cz") by vger.kernel.org with ESMTP id ; Mon, 16 Apr 2001 08:03:02 -0400 Date: Thu, 12 Apr 2001 23:51:45 +0000 From: Pavel Machek To: george anzinger Cc: Rik van Riel , SodaPop , alexey@datafoundation.com, linux-kernel@vger.kernel.org Subject: Re: [test-PATCH] Re: [QUESTION] 2.4.x nice level Message-ID: <20010412235144.A43@(none)> In-Reply-To: <3AD485E4.40BCBC0D@mvista.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <3AD485E4.40BCBC0D@mvista.com>; from george@mvista.com on Wed, Apr 11, 2001 at 09:27:16AM -0700 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi! > One rule of optimization is to move any code you can outside the loop. > Why isn't the nice_to_ticks calculation done when nice is changed > instead of EVERY recalc.? I guess another way to ask this is, who needs This way change is localized very nicely, and it is "obviously right". -- Philips Velo 1: 1"x4"x8", 300gram, 60, 12MB, 40bogomips, linux, mutt, details at http://atrey.karlin.mff.cuni.cz/~pavel/velo/index.html. - 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/