2007-08-16 20:05:54

by Sebastian Siewior

[permalink] [raw]
Subject: [patch 05/10] spufs: kspu add required declarations

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

--