From: Rusty Russell Date: Mon, 24 Nov 2008 16:05:11 +0000 (+1030) Subject: sched: avoid stack var in move_task_off_dead_cpu X-Git-Tag: v2.6.29-rc1~538^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e76bd8d9850c2296a7e8e24c9dce9b5e6b55fe2f;p=pandora-kernel.git sched: avoid stack var in move_task_off_dead_cpu Impact: stack usage reduction With some care, we can avoid needing a temporary cpumask (we can't really allocate here, since we can't fail). This version calls cpuset_cpus_allowed_locked() with the task_rq_lock held. I'm fairly sure this works, but there might be a deadlock hiding. And of course, we can't get rid of the last cpumask on stack until we can use cpumask_of_node instead of node_to_cpumask. Signed-off-by: Rusty Russell Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed