diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2008-03-04 20:17:02 +1100 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2008-03-11 12:28:02 +1100 |
commit | ce7c191bca88aa2f942f70a6d6c6315739a81a32 (patch) | |
tree | 9acd862b1278fb4cc38f52ae11715e050e505621 /arch/powerpc/platforms/cell/spufs/spufs.h | |
parent | Merge branch 'for-2.6.25' of master.kernel.org:/pub/scm/linux/kernel/git/arnd/cell-2.6 into merge (diff) | |
download | linux-dev-ce7c191bca88aa2f942f70a6d6c6315739a81a32.tar.xz linux-dev-ce7c191bca88aa2f942f70a6d6c6315739a81a32.zip |
[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 2c2fe3c07d72..cdc515182f82 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 { |