Messages in this thread Patch in this message | | | Date | Fri, 23 Oct 2009 18:37:51 -0500 | From | Mike Travis <> | Subject | [PATCH 8/8] SGI x86_64 UV: Limit the number of cpu is down messages |
| |
Limit number of "CPUx is down" messages when system is shutting down.
Cc: Rusty Russell <rusty@rustcorp.com.au> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Heiko Carstens <heiko.carstens@de.ibm.com> Cc: Shane Wang <shane.wang@intel.com> Cc: linux-kernel@vger.kernel.org Signed-off-by: Mike Travis <travis@sgi.com> --- 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); --
| |