Limit number of "CPUx is down" messages when system is shutting down. Cc: Rusty Russell Cc: H. Peter Anvin Cc: Heiko Carstens Cc: Shane Wang Cc: linux-kernel@vger.kernel.org Signed-off-by: Mike Travis --- kernel/cpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- linux.orig/kernel/cpu.c +++ linux/kernel/cpu.c @@ -394,7 +394,9 @@ error = _cpu_down(cpu, 1); if (!error) { cpumask_set_cpu(cpu, frozen_cpus); - printk("CPU%d is down\n", cpu); + if (cpu < 4 || system_state == SYSTEM_RUNNING || + !limit_console_output(false)) + printk(KERN_INFO "CPU%d is down\n", cpu); } else { printk(KERN_ERR "Error taking CPU%d down: %d\n", cpu, error); -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/