Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

cpuset: Remove cpuset_cpu_is_isolated()

The set of cpuset isolated CPUs is now included in HK_TYPE_DOMAIN
housekeeping cpumask. There is no usecase left interested in just
checking what is isolated by cpuset and not by the isolcpus= kernel
boot parameter.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Reviewed-by: Waiman Long <longman@redhat.com>
Cc: "Michal Koutný" <mkoutny@suse.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Marco Crivellari <marco.crivellari@suse.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Waiman Long <longman@redhat.com>
Cc: cgroups@vger.kernel.org

+1 -21
-6
include/linux/cpuset.h
··· 79 79 extern void cpuset_cpus_allowed_locked(struct task_struct *p, struct cpumask *mask); 80 80 extern void cpuset_cpus_allowed(struct task_struct *p, struct cpumask *mask); 81 81 extern bool cpuset_cpus_allowed_fallback(struct task_struct *p); 82 - extern bool cpuset_cpu_is_isolated(int cpu); 83 82 extern nodemask_t cpuset_mems_allowed(struct task_struct *p); 84 83 #define cpuset_current_mems_allowed (current->mems_allowed) 85 84 void cpuset_init_current_mems_allowed(void); ··· 210 211 } 211 212 212 213 static inline bool cpuset_cpus_allowed_fallback(struct task_struct *p) 213 - { 214 - return false; 215 - } 216 - 217 - static inline bool cpuset_cpu_is_isolated(int cpu) 218 214 { 219 215 return false; 220 216 }
+1 -3
include/linux/sched/isolation.h
··· 2 2 #define _LINUX_SCHED_ISOLATION_H 3 3 4 4 #include <linux/cpumask.h> 5 - #include <linux/cpuset.h> 6 5 #include <linux/init.h> 7 6 #include <linux/tick.h> 8 7 ··· 83 84 static inline bool cpu_is_isolated(int cpu) 84 85 { 85 86 return !housekeeping_test_cpu(cpu, HK_TYPE_DOMAIN) || 86 - !housekeeping_test_cpu(cpu, HK_TYPE_TICK) || 87 - cpuset_cpu_is_isolated(cpu); 87 + !housekeeping_test_cpu(cpu, HK_TYPE_TICK); 88 88 } 89 89 90 90 #endif /* _LINUX_SCHED_ISOLATION_H */
-12
kernel/cgroup/cpuset.c
··· 29 29 #include <linux/mempolicy.h> 30 30 #include <linux/mm.h> 31 31 #include <linux/memory.h> 32 - #include <linux/export.h> 33 32 #include <linux/rcupdate.h> 34 33 #include <linux/sched.h> 35 34 #include <linux/sched/deadline.h> ··· 1486 1487 1487 1488 isolated_cpus_updating = false; 1488 1489 } 1489 - 1490 - /** 1491 - * cpuset_cpu_is_isolated - Check if the given CPU is isolated 1492 - * @cpu: the CPU number to be checked 1493 - * Return: true if CPU is used in an isolated partition, false otherwise 1494 - */ 1495 - bool cpuset_cpu_is_isolated(int cpu) 1496 - { 1497 - return cpumask_test_cpu(cpu, isolated_cpus); 1498 - } 1499 - EXPORT_SYMBOL_GPL(cpuset_cpu_is_isolated); 1500 1490 1501 1491 /** 1502 1492 * rm_siblings_excl_cpus - Remove exclusive CPUs that are used by sibling cpusets