Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S978869AbdDXWyQ (ORCPT ); Mon, 24 Apr 2017 18:54:16 -0400 Received: from mail-io0-f173.google.com ([209.85.223.173]:36480 "EHLO mail-io0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S978479AbdDXWyK (ORCPT ); Mon, 24 Apr 2017 18:54:10 -0400 Date: Mon, 24 Apr 2017 15:54:07 -0700 From: Tejun Heo To: Peter Zijlstra Cc: Ingo Molnar , linux-kernel@vger.kernel.org, Linus Torvalds , Vincent Guittot , Mike Galbraith , Paul Turner , Chris Mason , kernel-team@fb.com Subject: Re: [PATCH 3/2] sched/fair: Skip __update_load_avg() on cfs_rq sched_entities Message-ID: <20170424225407.GC23619@wtj.duckdns.org> References: <20170424201344.GA14169@wtj.duckdns.org> <20170424213528.GB23619@wtj.duckdns.org> <20170424214859.piup4m4dumnssnug@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170424214859.piup4m4dumnssnug@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 959 Lines: 26 Hello, Peter. On Mon, Apr 24, 2017 at 11:48:59PM +0200, Peter Zijlstra wrote: > On Mon, Apr 24, 2017 at 02:35:28PM -0700, Tejun Heo wrote: > > - if (se->avg.last_update_time && !(flags & SKIP_AGE_LOAD)) { > > - __update_load_avg(now, cpu, &se->avg, > > - se->on_rq * scale_load_down(se->load.weight), > > - cfs_rq->curr == se, NULL); > > + if (entity_is_task(se)) { > > + if (se->avg.last_update_time && !(flags & SKIP_AGE_LOAD)) > > + __update_load_avg(now, cpu, &se->avg, > > + se->on_rq * scale_load_down(se->load.weight), > > + cfs_rq->curr == se, NULL); > > I've not looked at these patches yet, but you've been patching old code. > __update_load_avg() no longer exists (the conversion shouldn't be too > hard, its mostly been a restructure/rename thing). Ah, sure. The patchset still being RFC, I wanted to post the version I was working with. If you want the patchset refreshed now, please let me know. Thanks. -- tejun