From: Michal Koutný Date: Tue, 11 Mar 2025 12:36:18 +0000 (+0100) Subject: cgroup/cpuset-v1: Add deprecation messages to sched_load_balance and memory_pressure_... X-Git-Tag: v6.15-rc1~228^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a0dd846257af0b272488032df215939f48cefc75;p=thirdparty%2Fkernel%2Flinux.git 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ý Acked-by: Waiman Long Signed-off-by: Tejun Heo --- diff --git a/kernel/cgroup/cpuset-v1.c b/kernel/cgroup/cpuset-v1.c index 81b5e2a50d587..7d310d8bb1ad2 100644 --- a/kernel/cgroup/cpuset-v1.c +++ b/kernel/cgroup/cpuset-v1.c @@ -471,12 +471,14 @@ static int cpuset_write_u64(struct cgroup_subsys_state *css, struct cftype *cft, retval = cpuset_update_flag(CS_MEM_HARDWALL, cs, val); break; case FILE_SCHED_LOAD_BALANCE: + pr_info_once("cpuset.%s is deprecated, use cpuset.cpus.partition instead\n", cft->name); retval = cpuset_update_flag(CS_SCHED_LOAD_BALANCE, cs, val); break; case FILE_MEMORY_MIGRATE: retval = cpuset_update_flag(CS_MEMORY_MIGRATE, cs, val); break; case FILE_MEMORY_PRESSURE_ENABLED: + pr_info_once("cpuset.%s is deprecated, use memory.pressure with CONFIG_PSI instead\n", cft->name); cpuset_memory_pressure_enabled = !!val; break; case FILE_SPREAD_PAGE: