Re: [patch 2/4 v2] PS3: Add logical performance monitor repository routines

2008-01-09 Thread Stephen Rothwell
On Wed, 9 Jan 2008 11:01:38 +0100 (CET) Geert Uytterhoeven <[EMAIL PROTECTED]> wrote: > > On Wed, 9 Jan 2008, Stephen Rothwell wrote: > > On Tue, 08 Jan 2008 22:35:36 -0800 Geoff Levand <[EMAIL PROTECTED]> wrote: > > > > > > +int ps3_repository_read_num_pu(unsigned int *num_pu) > > > +{ > > > + in

Re: [patch 2/4 v2] PS3: Add logical performance monitor repository routines

2008-01-09 Thread Geert Uytterhoeven
On Wed, 9 Jan 2008, Stephen Rothwell wrote: > On Tue, 08 Jan 2008 22:35:36 -0800 Geoff Levand <[EMAIL PROTECTED]> wrote: > > > > +int ps3_repository_read_num_pu(unsigned int *num_pu) > > +{ > > + int result; > > + u64 v1; > > + > > + v1 = 0; > > + result = read_node(PS3_LPAR_ID_CURRENT, > >

Re: [patch 2/4 v2] PS3: Add logical performance monitor repository routines

2008-01-08 Thread Stephen Rothwell
On Tue, 08 Jan 2008 22:35:36 -0800 Geoff Levand <[EMAIL PROTECTED]> wrote: > > +int ps3_repository_read_num_pu(unsigned int *num_pu) > +{ > + int result; > + u64 v1; > + > + v1 = 0; > + result = read_node(PS3_LPAR_ID_CURRENT, > +make_first_field("bi", 0), > +

[patch 2/4 v2] PS3: Add logical performance monitor repository routines

2008-01-08 Thread Geoff Levand
From: Takashi Yamamoto <[EMAIL PROTECTED]> Add repository routines for the PS3 Logical Performance Monitor (lpm). Signed-off-by: Takashi Yamamoto <[EMAIL PROTECTED]> Signed-off-by: Geoff Levand <[EMAIL PROTECTED]> --- v2: correct Yamamoto-san's mail addr. arch/powerpc/platforms/ps3/platform.h