From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751393AbcGOP0h (ORCPT ); Fri, 15 Jul 2016 11:26:37 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:47381 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751000AbcGOP0f (ORCPT ); Fri, 15 Jul 2016 11:26:35 -0400 Date: Fri, 15 Jul 2016 17:26:30 +0200 From: Sebastian Andrzej Siewior To: Mark Rutland Cc: Anna-Maria Gleixner , LKML , Peter Zijlstra , Ingo Molnar , Thomas Gleixner , rt@linutronix.de, Linus Torvalds , Will Deacon Subject: Re: [patch V2 35/67] arm/perf: Convert to hotplug state machine Message-ID: <20160715152629.GB16938@linutronix.de> References: <20160713153219.128052238@linutronix.de> <20160713153335.794097159@linutronix.de> <20160715130818.GA19840@leverpostej> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20160715130818.GA19840@leverpostej> X-Key-Id: 2A8CF5D1 X-Key-Fingerprint: 6425 4695 FFF0 AA44 66CC 19E6 7B96 E816 2A8C F5D1 User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Mark Rutland | 2016-07-15 14:08:18 [+0100]: >Hi, Hi Mark, >We may have multiple PMUs (e.g. two in big.LITTLE systems), and >__oprofile_cpu_pmu only contains one of these. So this conversion is not >correct. > >We were relying on the notifier list implicitly containing a list of >those PMUs. It seems like we need an explicit list here. > >We keep __oprofile_cpu_pmu around for legacy 32-bit users of OProfile >(on non-hetereogeneous systems), and that's all that the variable should >be used for. By the time I'e been looking there was only one node in the .dts. Now you say it is not only possible but likely to have more than one node. So what we need is a list which gets extended in cpu_pmu_init() instead of using the global pointer we have now. Correct? >Thanks, >Mark. Sebastian