From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753614AbcEPRDJ (ORCPT ); Mon, 16 May 2016 13:03:09 -0400 Received: from merlin.infradead.org ([205.233.59.134]:35953 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750729AbcEPRDI (ORCPT ); Mon, 16 May 2016 13:03:08 -0400 Date: Mon, 16 May 2016 19:02:57 +0200 From: Peter Zijlstra To: Dietmar Eggemann Cc: mingo@kernel.org, linux-kernel@vger.kernel.org, clm@fb.com, matt@codeblueprint.co.uk, mgalbraith@suse.de, tglx@linutronix.de, fweisbec@gmail.com Subject: Re: [RFC][PATCH 4/7] sched: Replace sd_busy/nr_busy_cpus with sched_domain_shared Message-ID: <20160516170257.GU3192@twins.programming.kicks-ass.net> References: <20160509104807.284575300@infradead.org> <20160509105210.642395937@infradead.org> <5739E7BC.70205@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5739E7BC.70205@arm.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 16, 2016 at 04:31:08PM +0100, Dietmar Eggemann wrote: > On 09/05/16 11:48, Peter Zijlstra wrote: > > Couldn't you just always access sd->shared via > sd = rcu_dereference(per_cpu(sd_llc, cpu)) for > updating nr_busy_cpus? Sure; but why would I want to add that extra dereference? Note that in the next patch I add more users of sd_llc_shared.