[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <175CCF5F49938B4D99B2E3EF7F558EBE55075F139F@SC-VEXCH4.marvell.com>
Date: Sun, 13 Apr 2014 18:36:16 -0700
From: Neil Zhang <zhangwm@...vell.com>
To: Stephen Boyd <sboyd@...eaurora.org>
CC: "will.deacon@....com" <will.deacon@....com>,
"linux@....linux.org.uk" <linux@....linux.org.uk>,
Sudeep KarkadaNagesha <sudeep.karkadanagesha@....com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>
Subject: RE: [PATCH] ARM: perf: save/restore pmu registers in pm notifier
Stephen,
> -----Original Message-----
> From: Stephen Boyd [mailto:sboyd@...eaurora.org]
> Sent: 2014年4月12日 2:32
> To: Neil Zhang
> Cc: will.deacon@....com; linux@....linux.org.uk; Sudeep KarkadaNagesha;
> linux-kernel@...r.kernel.org; linux-arm-kernel@...ts.infradead.org
> Subject: Re: [PATCH] ARM: perf: save/restore pmu registers in pm notifier
>
> 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)?
Thanks for the suggestion, I will update it.
>
> --
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted
> by The Linux Foundation
Best Regards,
Neil Zhang
Powered by blists - more mailing lists