[Cbe-oss-dev] [PATCH] [POWERPC] spufs: don't (ab)use SCHED_IDLE
Christoph Hellwig
hch at lst.de
Wed Mar 5 19:04:25 EST 2008
On Tue, Mar 04, 2008 at 08:17:48PM +1100, Jeremy Kerr wrote:
> 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), use an 'int active'
> member of struct spu_context to tell if a context should be running.
Why do you add another field instead of adding one more flag to
ctx->flags?
More information about the cbe-oss-dev
mailing list