summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2016-06-03 09:40:44 +0200
committerDominik Sliwa <dominik.sliwa@toradex.com>2016-06-22 15:29:36 +0200
commitc874ed0f80fc422baa7b4c8905ef8970f6b708e7 (patch)
treec304ef3466d6e74a93f557be3b188359f3de1d6c
parent887872511354320f6e5000a390677c049033d764 (diff)
arm: smp: sched: clean-up and silence cpu hot-plugging debug
Clean-up and silence those annoying CPU hot-plugging debug messages. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Dominik Sliwa <dominik.sliwa@toradex.com>
-rw-r--r--arch/arm/kernel/smp.c18
-rw-r--r--kernel/time/tick-sched.c4
2 files changed, 11 insertions, 11 deletions
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c
index 45664df79f05..88f85ef2d9d0 100644
--- a/arch/arm/kernel/smp.c
+++ b/arch/arm/kernel/smp.c
@@ -70,7 +70,7 @@ int __cpuinit __cpu_up(unsigned int cpu)
if (!idle) {
idle = fork_idle(cpu);
if (IS_ERR(idle)) {
- printk(KERN_ERR "CPU%u: fork() failed\n", cpu);
+ pr_err("CPU%u: fork() failed\n", cpu);
return PTR_ERR(idle);
}
ci->idle = idle;
@@ -215,10 +215,10 @@ void __cpu_die(unsigned int cpu)
pr_err("CPU%u: cpu didn't die\n", cpu);
return;
}
- printk(KERN_NOTICE "CPU%u: shutdown\n", cpu);
+ pr_debug("CPU%u: shutdown\n", cpu);
if (!platform_cpu_kill(cpu))
- printk("CPU%u: unable to kill\n", cpu);
+ pr_err("CPU%u: unable to kill\n", cpu);
}
/*
@@ -312,7 +312,7 @@ asmlinkage void __cpuinit secondary_start_kernel(void)
* before we continue.
*/
set_cpu_online(cpu, true);
- printk("CPU%u: Booted secondary processor\n", cpu);
+ pr_debug("CPU%u: Booted secondary processor\n", cpu);
/*
* Setup the percpu timer for this CPU.
@@ -552,7 +552,7 @@ static void ipi_cpu_stop(unsigned int cpu)
if (system_state == SYSTEM_BOOTING ||
system_state == SYSTEM_RUNNING) {
spin_lock(&stop_lock);
- printk(KERN_CRIT "CPU%u: stopping\n", cpu);
+ pr_crit("CPU%u: stopping\n", cpu);
dump_stack();
spin_unlock(&stop_lock);
}
@@ -611,7 +611,7 @@ static void ipi_cpu_backtrace(unsigned int cpu, struct pt_regs *regs)
{
if (cpu_isset(cpu, backtrace_mask)) {
raw_spin_lock(&backtrace_lock);
- pr_warning("IPI backtrace for cpu %d\n", cpu);
+ pr_warn("IPI backtrace for cpu %d\n", cpu);
show_regs(regs);
raw_spin_unlock(&backtrace_lock);
cpu_clear(cpu, backtrace_mask);
@@ -661,8 +661,8 @@ asmlinkage void __exception_irq_entry do_IPI(int ipinr, struct pt_regs *regs)
break;
default:
- printk(KERN_CRIT "CPU%u: Unknown IPI message 0x%x\n",
- cpu, ipinr);
+ pr_crit("CPU%u: Unknown IPI message 0x%x\n",
+ cpu, ipinr);
break;
}
set_irq_regs(old_regs);
@@ -690,7 +690,7 @@ void smp_send_stop(void)
udelay(1);
if (num_online_cpus() > 1)
- pr_warning("SMP: failed to stop secondary CPUs\n");
+ pr_warn("SMP: failed to stop secondary CPUs\n");
}
/*
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
index d5097c44b407..fa988e179945 100644
--- a/kernel/time/tick-sched.c
+++ b/kernel/time/tick-sched.c
@@ -641,7 +641,7 @@ static void tick_nohz_switch_to_nohz(void)
}
local_irq_enable();
- printk(KERN_INFO "Switched to NOHz mode on CPU #%d\n", smp_processor_id());
+ printk(KERN_DEBUG "Switched to NOHz mode on CPU #%d\n", smp_processor_id());
}
/*
@@ -795,7 +795,7 @@ void tick_setup_sched_timer(void)
#ifdef CONFIG_NO_HZ
if (tick_nohz_enabled) {
ts->nohz_mode = NOHZ_MODE_HIGHRES;
- printk(KERN_INFO "Switched to NOHz mode on CPU #%d\n", smp_processor_id());
+ printk(KERN_DEBUG "Switched to NOHz mode on CPU #%d\n", smp_processor_id());
}
#endif
}