I like! I agree, if the task is not runnable then it should be
sufficient to just set task->cpu as when it is activated it will be put
into the runqueue based on ->cpu.
There was a chance even without the CPU affinity runqueues a process
would dequeue before set_cpus_allowed returned. Look at the case in
migration_thread where exactly what your patch does is done. If !array,
then the code just sets task->cpu and returns.
Ingo? Good?
Robert Love
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/