From d66a682167331064b784f486a6fe8ad4fa5b4504 Mon Sep 17 00:00:00 2001 From: Yaroslav Furman Date: Mon, 13 Apr 2020 13:27:57 +0300 Subject: [PATCH] kernel: stune_assist: clarify logger a bit We are not actually setting WALT specific values, no need in printing them. Signed-off-by: Yaroslav Furman --- kernel/sched/tune.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/kernel/sched/tune.c b/kernel/sched/tune.c index b3ca2958404b..4a763a8efddb 100755 --- a/kernel/sched/tune.c +++ b/kernel/sched/tune.c @@ -764,15 +764,16 @@ static void write_default_values(struct cgroup_subsys_state *css) struct st_data tgt = st_targets[i]; if (!strcmp(css->cgroup->kn->name, tgt.name)) { - pr_info("stune_assist: setting values for %s: boost=%d prefer_idle=%d colocate=%d no_override=%d\n", - tgt.name, tgt.boost, tgt.prefer_idle, - tgt.colocate, tgt.no_override); - boost_write(css, NULL, tgt.boost); prefer_idle_write(css, NULL, tgt.prefer_idle); -#ifdef CONFIG_SCHED_WALT +#ifndef CONFIG_SCHED_WALT + pr_info("stune_assist: setting values for %s: boost=%d prefer_idle=%d\n", + tgt.name, tgt.boost, tgt.prefer_idle); +#else sched_colocate_write(css, NULL, tgt.colocate); sched_boost_override_write(css, NULL, tgt.no_override); + pr_info("stune_assist: setting values for %s: boost=%d prefer_idle=%d colocate=%d no_override=%d\n", + tgt.name, tgt.boost, tgt.prefer_idle, tgt.colocate, tgt.no_override); #endif } }