aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/platforms/cell/spufs/sched.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/sched.c b/arch/powerpc/platforms/cell/spufs/sched.c
index 69272620a6b7..a20e4e28858c 100644
--- a/arch/powerpc/platforms/cell/spufs/sched.c
+++ b/arch/powerpc/platforms/cell/spufs/sched.c
@@ -491,6 +491,15 @@ static int __spu_deactivate(struct spu_context *ctx, int force, int max_prio)
491 */ 491 */
492void spu_deactivate(struct spu_context *ctx) 492void spu_deactivate(struct spu_context *ctx)
493{ 493{
494 /*
495 * We must never reach this for a nosched context,
496 * but handle the case gracefull instead of panicing.
497 */
498 if (ctx->flags & SPU_CREATE_NOSCHED) {
499 WARN_ON(1);
500 return;
501 }
502
494 __spu_deactivate(ctx, 1, MAX_PRIO); 503 __spu_deactivate(ctx, 1, MAX_PRIO);
495} 504}
496 505