summaryrefslogtreecommitdiffstats
path: root/kernel/cgroup/cpuset.c
diff options
context:
space:
mode:
authorMasahiro Yamada2019-02-18 07:28:11 +0100
committerTejun Heo2019-02-19 15:26:02 +0100
commit6a613d24effcb875271b8a1c510172e2d6eaaee8 (patch)
tree6dc01cf4c79c3e1a29592b50667f6f2677b252c3 /kernel/cgroup/cpuset.c
parentcgroup, rstat: Don't flush subtree root unless necessary (diff)
downloadkernel-qcow2-linux-6a613d24effcb875271b8a1c510172e2d6eaaee8.tar.gz
kernel-qcow2-linux-6a613d24effcb875271b8a1c510172e2d6eaaee8.tar.xz
kernel-qcow2-linux-6a613d24effcb875271b8a1c510172e2d6eaaee8.zip
cpuset: remove unused task_has_mempolicy()
This is a remnant of commit 5f155f27cb7f ("mm, cpuset: always use seqlock when changing task's nodemask"). Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/cgroup/cpuset.c')
-rw-r--r--kernel/cgroup/cpuset.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c
index 479743db6c37..72afd55f70c6 100644
--- a/kernel/cgroup/cpuset.c
+++ b/kernel/cgroup/cpuset.c
@@ -203,19 +203,6 @@ static inline struct cpuset *parent_cs(struct cpuset *cs)
return css_cs(cs->css.parent);
}
-#ifdef CONFIG_NUMA
-static inline bool task_has_mempolicy(struct task_struct *task)
-{
- return task->mempolicy;
-}
-#else
-static inline bool task_has_mempolicy(struct task_struct *task)
-{
- return false;
-}
-#endif
-
-
/* bits in struct cpuset flags field */
typedef enum {
CS_ONLINE,