Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933865AbdHYPqn convert rfc822-to-8bit (ORCPT ); Fri, 25 Aug 2017 11:46:43 -0400 Received: from mail.fireflyinternet.com ([109.228.58.192]:53086 "EHLO fireflyinternet.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933662AbdHYPqm (ORCPT ); Fri, 25 Aug 2017 11:46:42 -0400 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Peter Zijlstra , "Josef Bacik" From: Chris Wilson In-Reply-To: <20170801214307.ig62jhe7smtisvlr@hirez.programming.kicks-ass.net> Cc: "Rik van Riel" , linux-kernel@vger.kernel.org, jhladky@redhat.com, mingo@kernel.org, mgorman@suse.de References: <20170626144611.GA5775@worktop> <20170626150401.GC4941@worktop> <1498490454.13083.45.camel@redhat.com> <20170626161250.GD4941@worktop> <1498505689.13083.49.camel@redhat.com> <20170627053906.GA7287@worktop> <1498575358.20270.114.camel@redhat.com> <20170801121912.fnykqlq3r5jcbtn2@hirez.programming.kicks-ass.net> <20170801192650.GA27425@destiny> <20170801214307.ig62jhe7smtisvlr@hirez.programming.kicks-ass.net> Message-ID: <150367598066.27971.13705066235932844708@mail.alporthouse.com> User-Agent: alot/0.3.6 Subject: Re: [PATCH] sched/fair: Fix wake_affine() for !NUMA_BALANCING Date: Fri, 25 Aug 2017 16:46:20 +0100 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 608 Lines: 21 Quoting Peter Zijlstra (2017-08-01 22:43:07) > @@ -5356,20 +5295,115 @@ static int wake_wide(struct task_struct > return 1; > } > > +struct llc_stats { > + unsigned long nr_running; > + unsigned long load; > + unsigned long capacity; > + int has_capacity; > +}; > + > +static void get_llc_stats(struct llc_stats *stats, int cpu) > +{ > + struct sched_domain_shared *sds = rcu_dereference(per_cpu(sd_llc_shared, cpu)); > + > + if (!sds) { > + memset(&stats, 0, sizeof(*stats)); ^ Just in case, stray & before stats. -Chris