From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753519AbcGLLQQ (ORCPT ); Tue, 12 Jul 2016 07:16:16 -0400 Received: from foss.arm.com ([217.140.101.70]:58459 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751592AbcGLLQP (ORCPT ); Tue, 12 Jul 2016 07:16:15 -0400 Message-ID: <1468322171.10213.281.camel@arm.com> Subject: Re: [patch 22/66] bus: arm-ccn: convert to hotplug statemachine From: Pawel Moll To: Anna-Maria Gleixner , LKML Cc: Peter Zijlstra , Ingo Molnar , Sebastian Andrzej Siewior Date: Tue, 12 Jul 2016 12:16:11 +0100 In-Reply-To: <20160711122532.465002883@linutronix.de> References: <20160711122450.923603742@linutronix.de> <20160711122532.465002883@linutronix.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.5-1ubuntu3.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2016-07-11 at 12:28 +0000, Anna-Maria Gleixner wrote: > @@ -1270,9 +1262,10 @@ static int arm_ccn_pmu_init(struct arm_c > * ... and change the selection when it goes offline. > Priority is > * picked to have a chance to migrate events before perf is > notified. > */ > - ccn->dt.cpu_nb.notifier_call = arm_ccn_pmu_cpu_notifier; > - ccn->dt.cpu_nb.priority = CPU_PRI_PERF + 1, > - err = register_cpu_notifier(&ccn->dt.cpu_nb); > + cpuhp_armccn_dt = &ccn->dt; > + err = cpuhp_setup_state(CPUHP_AP_PERF_ARM_CCN_ONLINE, > + "AP_PERF_ARM_CCN_ONLINE", NULL, > + arm_ccn_pmu_offline_cpu); > if (err) > goto error_cpu_notifier; Also, unless I'm missing something obvious, it seems that the callback will be executed for CPUs going online? I'm definitely interested in my "current" CPU going down, in order to migrate my handlers somewhere else. Help? Pawel