SOURCES (LINUX_2_6): linux-2.6-cpuset_virtualization.patch - updat...

baggins baggins at pld-linux.org
Tue Apr 11 16:05:17 CEST 2006


Author: baggins                      Date: Tue Apr 11 14:05:17 2006 GMT
Module: SOURCES                       Tag: LINUX_2_6
---- Log message:
- updated to 2.6.16

---- Files affected:
SOURCES:
   linux-2.6-cpuset_virtualization.patch (1.1.2.6 -> 1.1.2.7) 

---- Diffs:

================================================================
Index: SOURCES/linux-2.6-cpuset_virtualization.patch
diff -u SOURCES/linux-2.6-cpuset_virtualization.patch:1.1.2.6 SOURCES/linux-2.6-cpuset_virtualization.patch:1.1.2.7
--- SOURCES/linux-2.6-cpuset_virtualization.patch:1.1.2.6	Wed Jan 11 13:41:44 2006
+++ SOURCES/linux-2.6-cpuset_virtualization.patch	Tue Apr 11 16:05:12 2006
@@ -2,9 +2,9 @@
 --- linux-2.6.14.3/arch/i386/kernel/cpu/proc.c	2005-11-24 23:10:21.000000000 +0100
 +++ linux-2.6.14.3-cpusetvirt/arch/i386/kernel/cpu/proc.c	2005-11-25 19:28:28.088979320 +0100
 @@ -3,6 +3,7 @@
- #include <linux/string.h>
  #include <asm/semaphore.h>
  #include <linux/seq_file.h>
+ #include <linux/cpufreq.h>
 +#include <linux/cpuset.h>
  
  /*
@@ -34,9 +34,9 @@
 --- linux-2.6.14.3/arch/ia64/kernel/setup.c	2005-11-24 23:10:21.000000000 +0100
 +++ linux-2.6.14.3-cpusetvirt/arch/ia64/kernel/setup.c	2005-11-25 19:28:28.090979016 +0100
 @@ -43,6 +43,7 @@
- #include <linux/initrd.h>
  #include <linux/platform.h>
  #include <linux/pm.h>
+ #include <linux/cpufreq.h>
 +#include <linux/cpuset.h>
  
  #include <asm/ia32.h>
@@ -71,9 +71,9 @@
 --- linux-2.6.14.3/arch/x86_64/kernel/setup.c	2005-11-24 23:10:21.000000000 +0100
 +++ linux-2.6.14.3-cpusetvirt/arch/x86_64/kernel/setup.c	2005-11-25 19:37:48.755745016 +0100
 @@ -42,6 +42,7 @@
- #include <linux/edd.h>
- #include <linux/mmzone.h>
- #include <linux/kexec.h>
+ #include <linux/cpufreq.h>
+ #include <linux/dmi.h>
+ #include <linux/dma-mapping.h>
 +#include <linux/cpuset.h>
  
  #include <asm/mtrr.h>
@@ -184,9 +184,9 @@
 --- linux-2.6.14.3/kernel/cpuset.c	2005-11-24 23:10:21.000000000 +0100
 +++ linux-2.6.14.3-cpusetvirt/kernel/cpuset.c	2005-11-25 19:28:28.084979928 +0100
 @@ -83,6 +83,7 @@
- typedef enum {
  	CS_CPU_EXCLUSIVE,
  	CS_MEM_EXCLUSIVE,
+ 	CS_MEMORY_MIGRATE,
 +	CS_VIRTUALIZED,
  	CS_REMOVED,
  	CS_NOTIFY_ON_RELEASE
@@ -323,7 +323,7 @@
 +		retval = set_cpus_virt_allowed(p, mask);
 +	else {
 +		cpumask_t cpus_allowed;
-+		cpus_allowed = p->cpuset->cpus_allowed;
++		cpus_allowed = cpuset_cpus_allowed(p);
 +		cpus_and(mask, mask, cpus_allowed);
 +		retval = set_cpus_allowed(p, mask);
 +	}
@@ -377,7 +377,7 @@
 +		allowed = CPU_MASK_ALL;
 +	}
 +		
- 	tsk->cpuset = cs;
+ 	rcu_assign_pointer(tsk->cpuset, cs);
  	task_unlock(tsk);
  
 -	guarantee_online_cpus(cs, &cpus);
@@ -390,8 +390,8 @@
 +		set_cpus_allowed(tsk, cpus);
 +	}
  
- 	put_task_struct(tsk);
- 	if (atomic_dec_and_test(&oldcs->count))
+ 	from = oldcs->mems_allowed;
+ 	to = cs->mems_allowed;
 @@ -839,6 +1006,7 @@
  	FILE_MEMLIST,
  	FILE_CPU_EXCLUSIVE,
@@ -499,12 +499,12 @@
  		goto out_unlock;
  
  	retval = 0;
--	cpus_and(*mask, p->cpus_allowed, cpu_possible_map);
+-	cpus_and(*mask, p->cpus_allowed, cpu_online_map);
 +#ifdef CONFIG_CPUSETS
 +	if (cpuset_get_cpus_virt_affinity(p, mask) < 0)
-+		cpus_and(*mask, p->cpus_allowed, cpu_possible_map);
++		cpus_and(*mask, p->cpus_allowed, cpu_online_map);
 +#else
-+  	cpus_and(*mask, p->cpus_allowed, cpu_possible_map);
++  	cpus_and(*mask, p->cpus_allowed, cpu_online_map);
 +#endif
  
  out_unlock:
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/linux-2.6-cpuset_virtualization.patch?r1=1.1.2.6&r2=1.1.2.7&f=u



More information about the pld-cvs-commit mailing list