summaryrefslogtreecommitdiffstats
path: root/kernel/sched/cpuacct.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-11-29 10:42:59 -0500
committerTejun Heo <tj@kernel.org>2013-11-29 10:42:59 -0500
commitafb2bc14e1c989cf0635bd04edb5ff55b8c1c7bd (patch)
treef7b3984bb26c3230d96a726f1af68bf882175c6a /kernel/sched/cpuacct.c
parent045023658ca1e30dc0bb1f148b42c95b740d3e02 (diff)
downloadop-kernel-dev-afb2bc14e1c989cf0635bd04edb5ff55b8c1c7bd.zip
op-kernel-dev-afb2bc14e1c989cf0635bd04edb5ff55b8c1c7bd.tar.gz
cgroup: don't guarantee cgroup.procs is sorted if sane_behavior
For some reason, tasks and cgroup.procs guarantee that the result is sorted. This is the only reason this whole pidlist logic is necessary instead of just iterating through sorted member tasks. We can't do anything about the existing interface but at least ensure that such expectation doesn't exist for the new interface so that pidlist logic may be removed in the distant future. This patch scrambles the sort order if sane_behavior so that the output is usually not sorted in the new interface. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'kernel/sched/cpuacct.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud