]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/platforms/cell/spufs/context.c
[POWERPC] spusched: Update scheduling paramters on every spu_run
[linux-2.6-omap-h63xx.git] / arch / powerpc / platforms / cell / spufs / context.c
index 7c51cb54bca1ca8ba78c5074631247465dc784e7..c778d9178e0f1fce1c7af60f9257d5034c31266a 100644 (file)
@@ -53,10 +53,8 @@ struct spu_context *alloc_spu_context(struct spu_gang *gang)
        INIT_LIST_HEAD(&ctx->rq);
        if (gang)
                spu_gang_add_ctx(gang, ctx);
-       ctx->rt_priority = current->rt_priority;
-       ctx->policy = current->policy;
-       ctx->prio = current->prio;
-       INIT_DELAYED_WORK(&ctx->sched_work, spu_sched_tick);
+
+       spu_set_timeslice(ctx);
        goto out;
 out_free:
        kfree(ctx);