Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1441259

Re: [patch 22/66] bus: arm-ccn: convert to hotplug statemachine

From Pawel Moll <pawel.moll@arm.com>
Newsgroups linux.kernel
Subject Re: [patch 22/66] bus: arm-ccn: convert to hotplug statemachine
Date 2016-07-12 13:20 +0200
Message-ID <rU3Tj-48p-11@gated-at.bofh.it> (permalink)
References <rTIFb-70u-3@gated-at.bofh.it> <rTIOS-762-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[patch 22/66] bus: arm-ccn: convert to hotplug statemachine Anna-Maria Gleixner <anna-maria@linutronix.de> - 2016-07-11 14:50 +0200
  Re: [patch 22/66] bus: arm-ccn: convert to hotplug statemachine Pawel Moll <pawel.moll@arm.com> - 2016-07-12 12:10 +0200
  Re: [patch 22/66] bus: arm-ccn: convert to hotplug statemachine Pawel Moll <pawel.moll@arm.com> - 2016-07-12 13:20 +0200
    Re: [patch 22/66] bus: arm-ccn: convert to hotplug statemachine Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2016-07-12 13:30 +0200

csiph-web