aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/cpuset.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/kernel/cpuset.c b/kernel/cpuset.c
index 832004935ca7..b5571272132c 100644
--- a/kernel/cpuset.c
+++ b/kernel/cpuset.c
@@ -735,7 +735,8 @@ static inline int started_after(void *p1, void *p2)
735 * Return nonzero if this tasks's cpus_allowed mask should be changed (in other 735 * Return nonzero if this tasks's cpus_allowed mask should be changed (in other
736 * words, if its mask is not equal to its cpuset's mask). 736 * words, if its mask is not equal to its cpuset's mask).
737 */ 737 */
738int cpuset_test_cpumask(struct task_struct *tsk, struct cgroup_scanner *scan) 738static int cpuset_test_cpumask(struct task_struct *tsk,
739 struct cgroup_scanner *scan)
739{ 740{
740 return !cpus_equal(tsk->cpus_allowed, 741 return !cpus_equal(tsk->cpus_allowed,
741 (cgroup_cs(scan->cg))->cpus_allowed); 742 (cgroup_cs(scan->cg))->cpus_allowed);
@@ -752,7 +753,8 @@ int cpuset_test_cpumask(struct task_struct *tsk, struct cgroup_scanner *scan)
752 * We don't need to re-check for the cgroup/cpuset membership, since we're 753 * We don't need to re-check for the cgroup/cpuset membership, since we're
753 * holding cgroup_lock() at this point. 754 * holding cgroup_lock() at this point.
754 */ 755 */
755void cpuset_change_cpumask(struct task_struct *tsk, struct cgroup_scanner *scan) 756static void cpuset_change_cpumask(struct task_struct *tsk,
757 struct cgroup_scanner *scan)
756{ 758{
757 set_cpus_allowed_ptr(tsk, &((cgroup_cs(scan->cg))->cpus_allowed)); 759 set_cpus_allowed_ptr(tsk, &((cgroup_cs(scan->cg))->cpus_allowed));
758} 760}
@@ -1714,7 +1716,8 @@ int __init cpuset_init(void)
1714 * Called by cgroup_scan_tasks() for each task in a cgroup. 1716 * Called by cgroup_scan_tasks() for each task in a cgroup.
1715 * Return nonzero to stop the walk through the tasks. 1717 * Return nonzero to stop the walk through the tasks.
1716 */ 1718 */
1717void cpuset_do_move_task(struct task_struct *tsk, struct cgroup_scanner *scan) 1719static void cpuset_do_move_task(struct task_struct *tsk,
1720 struct cgroup_scanner *scan)
1718{ 1721{
1719 struct cpuset_hotplug_scanner *chsp; 1722 struct cpuset_hotplug_scanner *chsp;
1720 1723