mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-22 13:54:57 +08:00
cpuset: remove unused task_has_mempolicy()
This is a remnant of commit 5f155f27cb
("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>
This commit is contained in:
parent
b4ff1b44bc
commit
6a613d24ef
@ -203,19 +203,6 @@ static inline struct cpuset *parent_cs(struct cpuset *cs)
|
|||||||
return css_cs(cs->css.parent);
|
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 */
|
/* bits in struct cpuset flags field */
|
||||||
typedef enum {
|
typedef enum {
|
||||||
CS_ONLINE,
|
CS_ONLINE,
|
||||||
|
Loading…
Reference in New Issue
Block a user