From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422869Ab2LGAde (ORCPT ); Thu, 6 Dec 2012 19:33:34 -0500 Received: from mga02.intel.com ([134.134.136.20]:19014 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422776Ab2LGAdd (ORCPT ); Thu, 6 Dec 2012 19:33:33 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.84,233,1355126400"; d="scan'208";a="230089252" Message-ID: <50C138DB.70602@intel.com> Date: Fri, 07 Dec 2012 08:31:23 +0800 From: Alex Shi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 MIME-Version: 1.0 To: Frederic Weisbecker CC: npiggin@kernel.dk, mingo@redhat.com, peterz@infradead.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org Subject: Re: [PATCH 01/10] sched: select_task_rq_fair clean up References: <1354542848-29638-1-git-send-email-alex.shi@intel.com> <1354542848-29638-2-git-send-email-alex.shi@intel.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/07/2012 01:50 AM, Frederic Weisbecker wrote: > 2012/12/3 Alex Shi : >> It is impossible to miss a task allowed cpu in a eligible group. >> >> And since find_idlest_group only return a different group which >> excludes old cpu, it's also imporissible to find a new cpu same as old >> cpu. > > Is it possible for weighted_cpuload() to return ULONG_MAX? If so, > find_idlest_cpu() can return -1. > No, non of sched entity can has a ULONG_MAX weight.