Skip to content

Commit a0dd846

Browse files
Werkovhtejun
authored andcommitted
cgroup/cpuset-v1: Add deprecation messages to sched_load_balance and memory_pressure_enabled
These two v1 feature have analogues in cgroup v2. Signed-off-by: Michal Koutný <[email protected]> Acked-by: Waiman Long <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent c7461cc commit a0dd846

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/cgroup/cpuset-v1.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,12 +471,14 @@ static int cpuset_write_u64(struct cgroup_subsys_state *css, struct cftype *cft,
471471
retval = cpuset_update_flag(CS_MEM_HARDWALL, cs, val);
472472
break;
473473
case FILE_SCHED_LOAD_BALANCE:
474+
pr_info_once("cpuset.%s is deprecated, use cpuset.cpus.partition instead\n", cft->name);
474475
retval = cpuset_update_flag(CS_SCHED_LOAD_BALANCE, cs, val);
475476
break;
476477
case FILE_MEMORY_MIGRATE:
477478
retval = cpuset_update_flag(CS_MEMORY_MIGRATE, cs, val);
478479
break;
479480
case FILE_MEMORY_PRESSURE_ENABLED:
481+
pr_info_once("cpuset.%s is deprecated, use memory.pressure with CONFIG_PSI instead\n", cft->name);
480482
cpuset_memory_pressure_enabled = !!val;
481483
break;
482484
case FILE_SPREAD_PAGE:

0 commit comments

Comments
 (0)