+ suspend-dont-change-cpus_allowed-for-task-initiating-the-suspend.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     suspend: don't change cpus_allowed for task initiating the suspend
has been added to the -mm tree.  Its filename is
     suspend-dont-change-cpus_allowed-for-task-initiating-the-suspend.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: suspend: don't change cpus_allowed for task initiating the suspend
From: "Siddha, Suresh B" <suresh.b.siddha@xxxxxxxxx>

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@xxxxxxxxx>
Cc: Venkatesh Pallipadi <venkatesh.pallipadi@xxxxxxxxx>
Cc: Pavel Machek <pavel@xxxxxx>
Cc: "Rafael J. Wysocki" <rjw@xxxxxxx>
Cc: Nigel Cunningham <nigel@xxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 kernel/cpu.c |    6 +-----
 1 files changed, 1 insertion(+), 5 deletions(-)

diff -puN kernel/cpu.c~suspend-dont-change-cpus_allowed-for-task-initiating-the-suspend kernel/cpu.c
--- a/kernel/cpu.c~suspend-dont-change-cpus_allowed-for-task-initiating-the-suspend
+++ a/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
 	 */
_

Patches currently in -mm which might be from suresh.b.siddha@xxxxxxxxx are

suspend-dont-change-cpus_allowed-for-task-initiating-the-suspend.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux