* [PATCH] hotplug cpu: migrate a task within its cpuset whitespace fix
@ 2007-10-17 6:48 Paul Jackson
0 siblings, 0 replies; only message in thread
From: Paul Jackson @ 2007-10-17 6:48 UTC (permalink / raw)
To: Andrew Morton
Cc: Cliff Wickman, linux-kernel, Oleg Nesterov, Christoph Lameter,
Paul Jackson, Ingo Molnar
From: Paul Jackson <pj@sgi.com>
Fix indentation and spacing.
Signed-off-by: Paul Jackson <pj@sgi.com>
Cc: Cliff Wickman <cpw@sgi.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Christoph Lameter <clameter@sgi.com>
Cc: Ingo Molnar <mingo@elte.hu>
---
This fix applies to and follows the other patches:
hotplug-cpu-migrate-a-task-within-its-cpuset*.patch
kernel/sched.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
--- 2.6.23-mm1.orig/kernel/sched.c 2007-10-16 21:59:36.035170738 -0700
+++ 2.6.23-mm1/kernel/sched.c 2007-10-16 22:05:23.624506696 -0700
@@ -5034,16 +5034,16 @@ static void move_task_off_dead_cpu(int d
/* No more Mr. Nice Guy. */
if (dest_cpu == NR_CPUS) {
- cpumask_t cpus_allowed = cpuset_cpus_allowed_locked(p);
- /*
- * Try to stay on the same cpuset, where the current cpuset
- * may be a subset of all cpus.
- * The cpuset_cpus_allowed_locked() variant of
- * cpuset_cpus_allowed() will not block
- * It must be called within calls to cpuset_lock/cpuset_unlock.
- */
+ cpumask_t cpus_allowed = cpuset_cpus_allowed_locked(p);
+ /*
+ * Try to stay on the same cpuset, where the
+ * current cpuset may be a subset of all cpus.
+ * The cpuset_cpus_allowed_locked() variant of
+ * cpuset_cpus_allowed() will not block. It must be
+ * called within calls to cpuset_lock/cpuset_unlock.
+ */
rq = task_rq_lock(p, &flags);
- p->cpus_allowed = cpus_allowed;
+ p->cpus_allowed = cpus_allowed;
dest_cpu = any_online_cpu(p->cpus_allowed);
task_rq_unlock(rq, &flags);
--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@sgi.com> 1.650.933.1373
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-17 6:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-17 6:48 [PATCH] hotplug cpu: migrate a task within its cpuset whitespace fix Paul Jackson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®