spu_run_init() and spu_run_fini() need to be used outside of spufs/run.c
but within spufs.ko.

Signed-off-by: Sebastian Siewior <[EMAIL PROTECTED]>
--- a/arch/powerpc/platforms/cell/spufs/run.c
+++ b/arch/powerpc/platforms/cell/spufs/run.c
@@ -126,7 +126,7 @@ out:
        return ret;
 }
 
-static int spu_run_init(struct spu_context *ctx, u32 *npc)
+int spu_run_init(struct spu_context *ctx, u32 *npc)
 {
        spuctx_switch_state(ctx, SPU_UTIL_SYSTEM);
 
@@ -160,8 +160,7 @@ static int spu_run_init(struct spu_conte
        return 0;
 }
 
-static int spu_run_fini(struct spu_context *ctx, u32 *npc,
-                              u32 *status)
+int spu_run_fini(struct spu_context *ctx, u32 *npc, u32 *status)
 {
        int ret = 0;
 
--- a/arch/powerpc/platforms/cell/spufs/spufs.h
+++ b/arch/powerpc/platforms/cell/spufs/spufs.h
@@ -254,6 +254,10 @@ void spu_sched_exit(void);
 
 extern char *isolated_loader;
 
+/* sched */
+int spu_run_init(struct spu_context *ctx, u32 *npc);
+int spu_run_fini(struct spu_context *ctx, u32 *npc, u32 *status);
+
 /*
  * spufs_wait
  *     Same as wait_event_interruptible(), except that here

-- 

-
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to