Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755350AbbLQCur (ORCPT ); Wed, 16 Dec 2015 21:50:47 -0500 Received: from mail-pa0-f48.google.com ([209.85.220.48]:34246 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750965AbbLQCuq (ORCPT ); Wed, 16 Dec 2015 21:50:46 -0500 Subject: Re: PELT initial task load and wake_up_new_task() To: Yuyang Du References: <566B8009.2090006@linaro.org> <20151213191319.GA28098@intel.com> <566F61AA.4020904@linaro.org> <20151215022432.GG28098@intel.com> <56705FE1.5000600@linaro.org> <20151215235556.GI28098@intel.com> Cc: Peter Zijlstra , Ingo Molnar , Morten Rasmussen , Dietmar Eggemann , Patrick Bellasi , Juri Lelli , Vincent Guittot , "linux-kernel@vger.kernel.org" From: Steve Muckle X-Enigmail-Draft-Status: N1110 Message-ID: <56722303.4070208@linaro.org> Date: Wed, 16 Dec 2015 18:50:43 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20151215235556.GI28098@intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 664 Lines: 16 On 12/15/2015 03:55 PM, Yuyang Du wrote: > Hope the following patch should work. Thanks Yuyang. AFAICS it should work, though I believe the test on last_update_time could instead go at the top of migrate_task_rq_fair()? It'd save the fn call to remove_entity_load_avg() and two unnecessary assignments (as p->se.avg.last_update_time and p->se.exec_start = 0 for newly forked tasks). This worked for me. thanks, Steve -- 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/