提交 23afcb4e 编写于 作者: T Takashi Yamamoto 提交者: Paul Mackerras

[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: NTakashi Yamamoto <TakashiA.Yamamoto@jp.sony.com>
Signed-off-by: NGeoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 ad18c3db
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <asm/spu.h> #include <asm/spu.h>
#include <asm/spu_priv1.h> #include <asm/spu_priv1.h>
#include <asm/lv1call.h> #include <asm/lv1call.h>
#include <asm/ps3.h>
#include "../cell/spufs/spufs.h" #include "../cell/spufs/spufs.h"
#include "platform.h" #include "platform.h"
...@@ -140,6 +141,12 @@ static void _dump_areas(unsigned int spe_id, unsigned long priv2, ...@@ -140,6 +141,12 @@ static void _dump_areas(unsigned int spe_id, unsigned long priv2,
pr_debug("%s:%d: shadow: %lxh\n", func, line, shadow); pr_debug("%s:%d: shadow: %lxh\n", func, line, shadow);
} }
inline u64 ps3_get_spe_id(void *arg)
{
return spu_pdata(arg)->spe_id;
}
EXPORT_SYMBOL_GPL(ps3_get_spe_id);
static unsigned long get_vas_id(void) static unsigned long get_vas_id(void)
{ {
unsigned long id; unsigned long id;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册