Skip to contentSkip to conversation

hotplug cpu: migrate a task within its cpuset whitespace fix

PATCH New Paul Jackson 1 participant 1 message Oct 17, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hotplug cpu: migrate a task within its cpuset whitespace fix

From: Paul Jackson <[email protected]>

Fix indentation and spacing.

Cc Cliff Wickman <[email protected]>
Cc Oleg Nesterov <[email protected]>
Cc Christoph Lameter <[email protected]>
Cc Ingo Molnar <[email protected]>

---

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(-)
kernel/sched.c +9 -9
@@ -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);
 
Signature · 3 lines
                          I won't rest till it's the best ...
                          Programmer, Linux Scalability
                          Paul Jackson <[email protected]> 1.650.933.1373