aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/cell/spufs/spufs.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2008-03-04 20:17:02 +1100
committerJeremy Kerr <jk@ozlabs.org>2008-03-11 12:28:02 +1100
commitce7c191bca88aa2f942f70a6d6c6315739a81a32 (patch)
tree9acd862b1278fb4cc38f52ae11715e050e505621 /arch/powerpc/platforms/cell/spufs/spufs.h
parent3cecdda3f169f22f324f78fd544beee68e3cc6a4 (diff)
downloadlinaro-lsk-ce7c191bca88aa2f942f70a6d6c6315739a81a32.tar.gz
[POWERPC] spufs: don't (ab)use SCHED_IDLE
commit 4ef11014 introduced a usage of SCHED_IDLE to detect when a context is within spu_run. Instead of SCHED_IDLE (which has other meaning), add a flag to sched_flags to tell if a context should be running. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'arch/powerpc/platforms/cell/spufs/spufs.h')
-rw-r--r--arch/powerpc/platforms/cell/spufs/spufs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/spufs.h b/arch/powerpc/platforms/cell/spufs/spufs.h
index 2c2fe3c07d7..cdc515182f8 100644
--- a/arch/powerpc/platforms/cell/spufs/spufs.h
+++ b/arch/powerpc/platforms/cell/spufs/spufs.h
@@ -44,6 +44,7 @@ struct spu_gang;
enum {
SPU_SCHED_NOTIFY_ACTIVE,
SPU_SCHED_WAS_ACTIVE, /* was active upon spu_acquire_saved() */
+ SPU_SCHED_SPU_RUN, /* context is within spu_run */
};
struct spu_context {