[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150125230701.GC4148@codeblueprint.co.uk>
Date: Sun, 25 Jan 2015 23:07:01 +0000
From: Matt Fleming <matt@...eblueprint.co.uk>
To: Jiri Olsa <jolsa@...hat.com>
Cc: Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...nel.org>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Andi Kleen <andi@...stfloor.org>,
Thomas Gleixner <tglx@...utronix.de>,
linux-kernel@...r.kernel.org, "H. Peter Anvin" <hpa@...or.com>,
Kanaka Juvva <kanaka.d.juvva@...el.com>,
Vikas Shivappa <vikas.shivappa@...ux.intel.com>,
Matt Fleming <matt.fleming@...el.com>,
Arnaldo Carvalho de Melo <acme@...hat.com>
Subject: Re: [PATCH 5/9] perf/x86/intel: Add Intel Cache QoS Monitoring
support
On Sun, 25 Jan, at 07:34:55PM, Jiri Olsa wrote:
> On Fri, Jan 23, 2015 at 06:45:44PM +0000, Matt Fleming wrote:
>
> SNIP
>
> > + int phys_id = topology_physical_package_id(cpu);
> > + int i;
> > +
> > + for_each_cpu(i, &cqm_cpumask) {
> > + if (phys_id == topology_physical_package_id(i))
> > + return; /* already got reader for this socket */
> > + }
> > +
> > + cpumask_set_cpu(cpu, &cqm_cpumask);
> > +}
> > +
> > +static void intel_cqm_cpu_prepare(unsigned int cpu)
> > +{
> > + struct intel_cqm_state *state = &per_cpu(cqm_state, cpu);
> > + struct cpuinfo_x86 *c = &cpu_data(cpu);
> > +
> > + raw_spin_lock_init(&state->lock);
> > + state->rmid = 0;
>
> shouldn't you also init state->cnt?
Oops. Good catch, thanks!
--
Matt Fleming, Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists