From 04859b68388d7db9619fb33c2ec903e42613d968 Mon Sep 17 00:00:00 2001 From: Stephen Dickey Date: Tue, 10 Aug 2021 12:28:33 -0700 Subject: [PATCH] sched/walt: reduce severity of walt pause warning It is normal case to see hotplug become disabled and when this happens, pause_cpus and resume_cpus will fail. To walt_pause this is an issue as the requested action cannot be performed, but not from a system perspective. Reduce the severity of the walt_pause error upon failure of pause_cpus() and resume_cpus() to debug only. Corrective action is taken, so the warning doesn't need to be on the console. Change-Id: I5667a1efe46c07379e31bcfd9ff1cfeedd5be64c Signed-off-by: Stephen Dickey --- kernel/sched/walt/walt_pause.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/sched/walt/walt_pause.c b/kernel/sched/walt/walt_pause.c index 96e89ed33810..cca3d5904923 100644 --- a/kernel/sched/walt/walt_pause.c +++ b/kernel/sched/walt/walt_pause.c @@ -68,8 +68,8 @@ int walt_pause_cpus(struct cpumask *cpus) ret = pause_cpus(cpus); if (ret < 0) - printk_deferred("pause_cpus failure ret=%d cpus=%*pbl\n", ret, - cpumask_pr_args(&requested_cpus)); + pr_debug("pause_cpus failure ret=%d cpus=%*pbl\n", ret, + cpumask_pr_args(&requested_cpus)); else update_ref_counts(&requested_cpus, true); unlock: @@ -97,8 +97,8 @@ int walt_resume_cpus(struct cpumask *cpus) ret = resume_cpus(cpus); if (ret < 0) { - printk_deferred("resume_cpus failure ret=%d cpus=%*pbl\n", ret, - cpumask_pr_args(&requested_cpus)); + pr_debug("resume_cpus failure ret=%d cpus=%*pbl\n", ret, + cpumask_pr_args(&requested_cpus)); /* restore/increment ref counts in case of error */ update_ref_counts(&requested_cpus, true); }