[POWERPC] Wire up sys_getcpu

Arnd Bergmann arnd at arndb.de
Mon Feb 12 23:43:38 EST 2007


On Monday 12 February 2007 12:09, Stephen Rothwell wrote:
> 
> Signed-off-by: Stephen Rothwell <sfr at canb.auug.org.au>
> ---
>  include/asm-powerpc/systbl.h |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> Arnd, should this be _SPU?

Good question. There is nothing wrong with having the SPU call this,
i.e. it won't break stuff. The question is more if it should return
an SPU number instead of a CPU number. I've had people ask for
a feature like that in the past.

The node information returned from the call usually is the same for
the CPU and the SPU, but we don't guarantee that, unless the user
has specified node affinity.

I don't see a 'right' answer for your question, but I'd say let's
not forbid the user to call it and make it _SPU, even if it is
pointless.

	Arnd <><



More information about the Linuxppc-dev mailing list