Perf Event support for ARMv7 (was: Re: [PATCH 5/5] arm/perfevents: implement perf event support for ARMv6)

Jean Pihet jpihet at mvista.com
Fri Jan 15 10:43:39 EST 2010


On Friday 15 January 2010 16:39:41 Jamie Iles wrote:
> On Fri, Jan 15, 2010 at 04:30:06PM +0100, Jean Pihet wrote:
> > Hi Will,
> >
> > Thanks for the answers. Here are the remarks.
> >
> > Jamie, there is a remark at the very end about the cpuid detection. Can
> > you check?
>
> [snip]
>
> > > It might also be
> > > worth adding a cpu_architecture() check to the v6 test just in case a
> > > v7 core conflicts with the mask.
> >
> > Jamie, what do you think?
>
> Hmm, I'm not sure. I thought that cpu_architecture() returned the MMU
> architecture of the core. See the thread 'question about ARM11MP cpu
> architecture identification' for more details. Certainly on my ARM1176
> Linux reports it as a v7 on bootup so this check would be bad...
Correct! That is why I was asking. So the tests are working for v6 and v7 
because of the code ordering (need to check v6 first, then v7 variants). Is 
it ok to keep the code as is?

>
> Jamie





More information about the linux-arm-kernel mailing list