+ cpuset-remove-useless-sched-domain-line.patch added to -mm tree

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

 



The patch titled

     Cpuset: remove useless sched domain line

has been added to the -mm tree.  Its filename is

     cpuset-remove-useless-sched-domain-line.patch

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

------------------------------------------------------
Subject: Cpuset: remove useless sched domain line
From: Paul Jackson <pj@xxxxxxx>

Remove a useless line from the sched domain setup code in cpusets.

When I removed the 'is_removed()' flag test from the sched domain setup
code in cpusets, as part of my July 23, 2006 patch:

    Cpuset: fix ABBA deadlock with cpu hotplug lock

I failed to notice that this opened the door to a little bit of code
simplification.  A line of code that had to cover for the possibility that
a cpuset marked cpu_exclusive was marked for removal could be eliminated. 
In the code section visible in this patch, it is now the case that
cur->cpus_allowed is always a subset of pspan, so it is always a no-op to
cpus_or() cur->cpus_allowed into pspan.

Signed-off-by: Paul Jackson <pj@xxxxxxx>
Cc: Nick Piggin <nickpiggin@xxxxxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 kernel/cpuset.c |    1 -
 1 files changed, 1 deletion(-)

diff -puN kernel/cpuset.c~cpuset-remove-useless-sched-domain-line kernel/cpuset.c
--- a/kernel/cpuset.c~cpuset-remove-useless-sched-domain-line
+++ a/kernel/cpuset.c
@@ -783,7 +783,6 @@ static void update_cpu_domains(struct cp
 			cpus_andnot(pspan, pspan, c->cpus_allowed);
 	}
 	if (!is_cpu_exclusive(cur)) {
-		cpus_or(pspan, pspan, cur->cpus_allowed);
 		if (cpus_equal(pspan, cur->cpus_allowed))
 			return;
 		cspan = CPU_MASK_NONE;
_

Patches currently in -mm which might be from pj@xxxxxxx are

lib-cpumaskc-should-include-nodemaskh.patch
memory-page-alloc-minor-cleanups.patch
memory-page-alloc-minor-cleanups-fix.patch
memory-page_alloc-zonelist-caching-speedup.patch
memory-page_alloc-zonelist-caching-speedup-speedup.patch
cpuset-remove-useless-sched-domain-line.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