OSDN Git Service

cpuset: Simply allocation and freeing of cpumasks
authorWaiman Long <longman@redhat.com>
Thu, 8 Nov 2018 15:08:37 +0000 (10:08 -0500)
committerTejun Heo <tj@kernel.org>
Thu, 8 Nov 2018 20:27:28 +0000 (12:27 -0800)
commitbf92370c035d5ed73a90927450c20a07adf08cfd
treebfc7686ca36b5bab5c7f7c0fb2c7fa9885834cab
parent58b7484250db8da0d49bdd289c877ccd3319575c
cpuset: Simply allocation and freeing of cpumasks

The previous commit introduces a new subparts_cpus mask into the cpuset
data structure and a new tmpmasks structure.  Managing the allocation
and freeing of those cpumasks is becoming more complex.

So a number of helper functions are added to simplify and streamline
the management of those cpumasks. To make it simple, all the cpumasks
are now pre-cleared on allocation.

Signed-off-by: Waiman Long <longman@redhat.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cpuset.c