From c1ed5632ebc65b827b198d436d5074fd1198214d Mon Sep 17 00:00:00 2001 From: Takashi Yamamoto Date: Thu, 27 Mar 2008 11:37:38 +1100 Subject: [PATCH] --- yaml --- r: 91482 b: refs/heads/master c: 23afcb4e0061c591776a3350db89512d085397c2 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/powerpc/platforms/ps3/spu.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 524257bbe84f..0792d81bde22 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ad18c3db337c6307c7bfbe1f89ad6d92714ffc11 +refs/heads/master: 23afcb4e0061c591776a3350db89512d085397c2 diff --git a/trunk/arch/powerpc/platforms/ps3/spu.c b/trunk/arch/powerpc/platforms/ps3/spu.c index 5ad41189b494..d135cef9ed6a 100644 --- a/trunk/arch/powerpc/platforms/ps3/spu.c +++ b/trunk/arch/powerpc/platforms/ps3/spu.c @@ -27,6 +27,7 @@ #include #include #include +#include #include "../cell/spufs/spufs.h" #include "platform.h" @@ -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); } +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) { unsigned long id;