[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linuxppc-dev
Subject:    [PATCH][PPC32] Add performance counters to cpu_spec
From:       kumar.gala () freescale ! com (Kumar Gala)
Date:       2004-11-09 14:27:22
Message-ID: 781C4866-325B-11D9-AD97-000393DBC2E8 () freescale ! com
[Download RAW message or body]


On Nov 9, 2004, at 3:13 AM, Geert Uytterhoeven wrote:

> On Mon, 8 Nov 2004, Kumar Gala wrote:
>  > Adds the number of performance monitor counters each PowerPC 
> processor has to
>  > the cpu table.? Makes oprofile support a bit cleaner since we dont 
> need a case
>  > statement on processor version to determine the number of counters.
>  >
> > Signed-off-by: Kumar Gala <kumar.gala at freescale.com>
> >
> > --
>  >
> > diff -Nru a/arch/ppc/kernel/cputable.c b/arch/ppc/kernel/cputable.c
> > --- a/arch/ppc/kernel/cputable.c????? 2004-11-08 21:02:51 -06:00
>  > +++ b/arch/ppc/kernel/cputable.c????? 2004-11-08 21:02:51 -06:00
>  > @@ -82,6 +82,7 @@
>  >? ???? CPU_FTR_601 | CPU_FTR_HPTE_TABLE,
> >? ???? COMMON_PPC | PPC_FEATURE_601_INSTR | PPC_FEATURE_UNIFIED_CACHE,
> >? ???? 32, 32,
>  > +???? 0,
>  >? ???? __setup_cpu_601
> >????? },
>  >????? {??????? /* 603 */
>
> Perhaps you want to switch to C99-style struct initialization as well?

I can change it C99-style as well as fixing the formatting, just wanted 
to see if there we any other comments.  Will resend with those changes 
if I dont hear any other feedback.

- kumar



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic