• Tejun Heo's avatar
    cpuset: introduce ->css_on/offline() · c8f699bb
    Tejun Heo authored
    Add cpuset_css_on/offline() and rearrange css init/exit such that,
    
    * Allocation and clearing to the default values happen in css_alloc().
      Allocation now uses kzalloc().
    
    * Config inheritance and registration happen in css_online().
    
    * css_offline() undoes what css_online() did.
    
    * css_free() frees.
    
    This doesn't introduce any visible behavior changes.  This will help
    cleaning up locking.
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Acked-by: default avatarLi Zefan <lizefan@huawei.com>
    c8f699bb
cpuset.c 73.8 KB