kernel/cpu: Silence abundance of logspam

We don't really need to know if the CPU is getting disabled or enabled on a production device.

Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: priiii1808 <priyanshusinghal0818@gmail.com>
This commit is contained in:
Cyber Knight 2021-12-20 01:49:38 +08:00 committed by Ksawlii
parent edc883311b
commit 471bfb0e50

View file

@ -1721,13 +1721,13 @@ int freeze_secondary_cpus(int primary)
*/
cpumask_clear(frozen_cpus);
pr_info("Disabling non-boot CPUs ...\n");
pr_debug("Disabling non-boot CPUs ...\n");
for_each_online_cpu(cpu) {
if (cpu == primary)
continue;
if (pm_wakeup_pending()) {
pr_info("Wakeup pending. Abort CPU freeze\n");
pr_debug("Wakeup pending. Abort CPU freeze\n");
error = -EBUSY;
break;
}
@ -1759,7 +1759,7 @@ int freeze_secondary_cpus(int primary)
if (!error)
BUG_ON(num_online_cpus() > 1);
else
pr_err("Non-boot CPUs are not disabled\n");
pr_debug("Non-boot CPUs are not disabled\n");
/*
* Make sure the CPUs won't be enabled by someone else. We need to do
@ -1791,7 +1791,7 @@ void thaw_secondary_cpus(void)
if (cpumask_empty(frozen_cpus))
goto out;
pr_info("Enabling non-boot CPUs ...\n");
pr_debug("Enabling non-boot CPUs ...\n");
arch_thaw_secondary_cpus_begin();