Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[POWERPC] PS3: Add ps3_get_speid routine

Add a new routine ps3_get_speid() which returns the logical
SPE ID. This ID is needed for profiling support.

Signed-off-by: Takashi Yamamoto <TakashiA.Yamamoto@jp.sony.com>
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>

authored by

Takashi Yamamoto and committed by
Paul Mackerras
23afcb4e ad18c3db

+7
+7
arch/powerpc/platforms/ps3/spu.c
··· 27 27 #include <asm/spu.h> 28 28 #include <asm/spu_priv1.h> 29 29 #include <asm/lv1call.h> 30 + #include <asm/ps3.h> 30 31 31 32 #include "../cell/spufs/spufs.h" 32 33 #include "platform.h" ··· 140 139 pr_debug("%s:%d: ls: %lxh\n", func, line, ls); 141 140 pr_debug("%s:%d: shadow: %lxh\n", func, line, shadow); 142 141 } 142 + 143 + inline u64 ps3_get_spe_id(void *arg) 144 + { 145 + return spu_pdata(arg)->spe_id; 146 + } 147 + EXPORT_SYMBOL_GPL(ps3_get_spe_id); 143 148 144 149 static unsigned long get_vas_id(void) 145 150 {