Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 20 Feb 2003 14:10:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 20 Feb 2003 14:10:13 -0500 Received: from [24.77.48.240] ([24.77.48.240]:65125 "EHLO aiinc.aiinc.ca") by vger.kernel.org with ESMTP id ; Thu, 20 Feb 2003 14:10:12 -0500 Date: Thu, 20 Feb 2003 11:20:18 -0800 (PST) From: Michael Hayes To: linux-kernel@vger.kernel.org Subject: Strange comment in sched.c 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 Content-Length: 826 Lines: 20 This comment at sched.c:843 is a bit confusing: * We fend off statistical fluctuations in runqueue lengths by * saving the runqueue length during the previous load-balancing * operation and using the smaller one the current and saved lengths. First, it's ungrammatical ("...the smaller one the..."). Second, the code immediately following it seems to be choosing the _larger_ of the two values, not the smaller: if (idle || (this_rq->nr_running > this_rq->prev_nr_running[this_cpu])) nr_running = this_rq->nr_running; else nr_running = this_rq->prev_nr_running[this_cpu]; - 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/