~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/powerpc/platforms/cell/spufs/sched.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
#include <linux/pid_namespace.h>
41
41
#include <linux/proc_fs.h>
42
42
#include <linux/seq_file.h>
43
 
#include <linux/marker.h>
44
43
 
45
44
#include <asm/io.h>
46
45
#include <asm/mmu_context.h>
142
141
         * runqueue. The context will be rescheduled on the proper node
143
142
         * if it is timesliced or preempted.
144
143
         */
145
 
        ctx->cpus_allowed = current->cpus_allowed;
 
144
        cpumask_copy(&ctx->cpus_allowed, tsk_cpus_allowed(current));
146
145
 
147
146
        /* Save the current cpu id for spu interrupt routing. */
148
147
        ctx->last_ran = raw_smp_processor_id();
847
846
                struct list_head *rq = &spu_prio->runq[best];
848
847
 
849
848
                list_for_each_entry(ctx, rq, rq) {
850
 
                        /* XXX(hch): check for affinity here aswell */
 
849
                        /* XXX(hch): check for affinity here as well */
851
850
                        if (__node_allowed(ctx, node)) {
852
851
                                __spu_del_from_rq(ctx);
853
852
                                goto found;