Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756338Ab3FQOBw (ORCPT ); Mon, 17 Jun 2013 10:01:52 -0400 Received: from mga02.intel.com ([134.134.136.20]:8624 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756229Ab3FQOBu (ORCPT ); Mon, 17 Jun 2013 10:01:50 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.87,881,1363158000"; d="scan'208";a="351081013" Message-ID: <51BF16C6.7070009@intel.com> Date: Mon, 17 Jun 2013 22:01:42 +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: Paul Turner CC: Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Andrew Morton , Borislav Petkov , Namhyung Kim , Mike Galbraith , Morten Rasmussen , Vincent Guittot , Preeti U Murthy , Viresh Kumar , LKML , Mel Gorman , Rik van Riel , Michael Wang , Jason Low , Changlong Xie , sgruszka@redhat.com, =?ISO-8859-1?Q?Fr=E9d=E9ric_Weisbecker?= Subject: Re: [patch v8 8/9] sched: consider runnable load average in move_tasks References: <1370589652-24549-1-git-send-email-alex.shi@intel.com> <1370589652-24549-9-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 Content-Length: 813 Lines: 22 On 06/17/2013 06:58 PM, Paul Turner wrote: >> > + unsigned long tmp_rla; >> > + tmp_rla = tg->parent->cfs_rq[cpu]->runnable_load_avg + 1; >> > + >> > load = tg->parent->cfs_rq[cpu]->h_load; >> > - load *= tg->se[cpu]->load.weight; >> > - load /= tg->parent->cfs_rq[cpu]->load.weight + 1; >> > + load *= tg->se[cpu]->avg.load_avg_contrib; >> > + load /= tmp_rla; > Why do we need the temporary here? > you'r right. tmp_rla is not necessary here. -- Thanks Alex -- 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/