diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2008-03-04 09:17:02 (GMT) |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2008-03-11 01:28:02 (GMT) |
commit | ce7c191bca88aa2f942f70a6d6c6315739a81a32 (patch) | |
tree | 9acd862b1278fb4cc38f52ae11715e050e505621 /arch/powerpc/platforms/cell/spufs/spufs.h | |
parent | 3cecdda3f169f22f324f78fd544beee68e3cc6a4 (diff) | |
download | linux-fsl-qoriq-ce7c191bca88aa2f942f70a6d6c6315739a81a32.tar.xz |
[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.h | 1 |
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 2c2fe3c..cdc5151 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 { |