Re: [PATCH] ARM: perf: save/restore pmu registers in pm notifier

From: Stephen Boyd
Date: Fri Apr 11 2014 - 14:31:57 EST


On 04/11/14 04:01, Neil Zhang wrote:
> @@ -217,6 +219,24 @@ static struct notifier_block cpu_pmu_hotplug_notifier = {
> .notifier_call = cpu_pmu_notify,
> };
>
> +static int cpu_pmu_pm_notify(struct notifier_block *b,
> + unsigned long action, void *hcpu)
> +{
> + int cpu = smp_processor_id();
> + struct cpupmu_regs *pmuregs = &per_cpu(cpu_pmu_regs, cpu);

this_cpu_ptr(&cpu_pmu_regs)?

--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/