diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-04-29 04:00:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 11:06:11 -0400 |
commit | 9e0c914cabc6d75d2eafdff00671a2ad683a5e3c (patch) | |
tree | 5986ff43c7af515b34520069efce556b529ea5d9 | |
parent | 1faf8e40a8ab12ae1f7f474965e6fb031e43f8d6 (diff) |
kernel/cpuset.c: make 3 functions static
Make the following needlessly global functions static:
- cpuset_test_cpumask()
- cpuset_change_cpumask()
- cpuset_do_move_task()
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Acked-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | kernel/cpuset.c | 9 |
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 | */ |
738 | int cpuset_test_cpumask(struct task_struct *tsk, struct cgroup_scanner *scan) | 738 | static 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 | */ |
755 | void cpuset_change_cpumask(struct task_struct *tsk, struct cgroup_scanner *scan) | 756 | static 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 | */ |
1717 | void cpuset_do_move_task(struct task_struct *tsk, struct cgroup_scanner *scan) | 1719 | static 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 | ||