diff options
Diffstat (limited to 'kernel/cpuset.c')
-rw-r--r-- | kernel/cpuset.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/kernel/cpuset.c b/kernel/cpuset.c index 6e9cbdde25bd..259a4af37e69 100644 --- a/kernel/cpuset.c +++ b/kernel/cpuset.c | |||
@@ -133,11 +133,7 @@ static inline struct cpuset *task_cs(struct task_struct *task) | |||
133 | 133 | ||
134 | static inline struct cpuset *parent_cs(struct cpuset *cs) | 134 | static inline struct cpuset *parent_cs(struct cpuset *cs) |
135 | { | 135 | { |
136 | struct cgroup *pcgrp = cs->css.cgroup->parent; | 136 | return css_cs(css_parent(&cs->css)); |
137 | |||
138 | if (pcgrp) | ||
139 | return cgroup_cs(pcgrp); | ||
140 | return NULL; | ||
141 | } | 137 | } |
142 | 138 | ||
143 | #ifdef CONFIG_NUMA | 139 | #ifdef CONFIG_NUMA |