mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] don't change cpus_allowed for task initiating the suspend
@ 2006-11-02 18:01 Siddha, Suresh B
  0 siblings, 0 replies; only message in thread
From: Siddha, Suresh B @ 2006-11-02 18:01 UTC (permalink / raw)
  To: rjw, pavel, akpm; +Cc: linux-kernel, venkatesh.pallipadi

Don't modify the cpus_allowed of the task initiating the suspend. 
_cpu_down() already makes sure that the task doing the suspend doesn't
run on dying cpu.

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
---

diff --git a/kernel/cpu.c b/kernel/cpu.c
index 663c920..d21756a 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -270,11 +270,7 @@ int disable_nonboot_cpus(void)
 			goto out;
 		}
 	}
-	error = set_cpus_allowed(current, cpumask_of_cpu(first_cpu));
-	if (error) {
-		printk(KERN_ERR "Could not run on CPU%d\n", first_cpu);
-		goto out;
-	}
+
 	/* We take down all of the non-boot CPUs in one shot to avoid races
 	 * with the userspace trying to use the CPU hotplug at the same time
 	 */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-11-02 18:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-02 18:01 [patch] don't change cpus_allowed for task initiating the suspend Siddha, Suresh B

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®