mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-27 06:04:23 +08:00
cgroup: cleanup comments
for spdx, add a space before // replacements judgement to judgment transofrmed to transformed partitition to partition histrical to historical migratecd to migrated Signed-off-by: Tom Rix <trix@redhat.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
ffacbd11e2
commit
f9da322e86
@ -71,7 +71,7 @@ DEFINE_STATIC_KEY_FALSE(cpusets_enabled_key);
|
||||
|
||||
/*
|
||||
* There could be abnormal cpuset configurations for cpu or memory
|
||||
* node binding, add this key to provide a quick low-cost judgement
|
||||
* node binding, add this key to provide a quick low-cost judgment
|
||||
* of the situation.
|
||||
*/
|
||||
DEFINE_STATIC_KEY_FALSE(cpusets_insane_config_key);
|
||||
@ -1151,7 +1151,7 @@ enum subparts_cmd {
|
||||
* effective_cpus. The function will return 0 if all the CPUs listed in
|
||||
* cpus_allowed can be granted or an error code will be returned.
|
||||
*
|
||||
* For partcmd_disable, the cpuset is being transofrmed from a partition
|
||||
* For partcmd_disable, the cpuset is being transformed from a partition
|
||||
* root back to a non-partition root. Any CPUs in cpus_allowed that are in
|
||||
* parent's subparts_cpus will be taken away from that cpumask and put back
|
||||
* into parent's effective_cpus. 0 should always be returned.
|
||||
@ -1990,7 +1990,7 @@ out:
|
||||
}
|
||||
|
||||
/*
|
||||
* update_prstate - update partititon_root_state
|
||||
* update_prstate - update partition_root_state
|
||||
* cs: the cpuset to update
|
||||
* new_prs: new partition root state
|
||||
*
|
||||
@ -2840,7 +2840,7 @@ static int cpuset_css_online(struct cgroup_subsys_state *css)
|
||||
/*
|
||||
* Clone @parent's configuration if CGRP_CPUSET_CLONE_CHILDREN is
|
||||
* set. This flag handling is implemented in cgroup core for
|
||||
* histrical reasons - the flag may be specified during mount.
|
||||
* historical reasons - the flag may be specified during mount.
|
||||
*
|
||||
* Currently, if any sibling cpusets have exclusive cpus or mem, we
|
||||
* refuse to clone the configuration - thereby refusing the task to
|
||||
@ -3037,7 +3037,7 @@ hotplug_update_tasks_legacy(struct cpuset *cs,
|
||||
|
||||
/*
|
||||
* Don't call update_tasks_cpumask() if the cpuset becomes empty,
|
||||
* as the tasks will be migratecd to an ancestor.
|
||||
* as the tasks will be migrated to an ancestor.
|
||||
*/
|
||||
if (cpus_updated && !cpumask_empty(cs->cpus_allowed))
|
||||
update_tasks_cpumask(cs);
|
||||
|
@ -1,4 +1,4 @@
|
||||
//SPDX-License-Identifier: GPL-2.0
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
#include <linux/cgroup.h>
|
||||
#include <linux/sched.h>
|
||||
#include <linux/sched/task.h>
|
||||
|
Loading…
Reference in New Issue
Block a user