[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 11 Nov 2010 20:45:07 +0100
From: Andi Kleen <ak@...ux.intel.com>
To: Peter Zijlstra <a.p.zijlstra@...llo.nl>
CC: Andi Kleen <andi@...stfloor.org>, linux-kernel@...r.kernel.org,
fweisbec@...il.com, mingo@...e.hu, acme@...hat.com,
eranian@...gle.com
Subject: Re: [PATCH 1/3] perf-events: Add support for supplementary event
registers
On 11/11/2010 8:36 PM, Peter Zijlstra wrote:
>
> Can we make it so, that is, move that int inside the intel_percore
> struct?
>
It's needed per cpu. Basically the flag says "bother to look into the
percore structure"
This way most of this is kept out of the fast paths. But one CPU in a core
may need it and the other not.
In principle it could be merged into some other cpuc flag word if you
have any suggestions.
>
> Hrm,.. but we only need to do this on nhm/wsm init, we already have code
> detecting the cpu model. And I'm quite sure you know where to poke to
> see if HT is enabled.
Ok I guess I can do a dynamic per cpu allocation for this case.
-Andi
--
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