Limit number of SRAT messages of the form: [ 0.000000] SRAT: PXM 0 -> APIC 0 -> Node 0 Cc: H. Peter Anvin Cc: x86@kernel.org Cc: David Rientjes Cc: Yinghai Lu Cc: Mel Gorman Cc: linux-kernel@vger.kernel.org Signed-off-by: Mike Travis --- arch/x86/mm/srat_64.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) --- linux.orig/arch/x86/mm/srat_64.c +++ linux/arch/x86/mm/srat_64.c @@ -136,8 +136,9 @@ apicid_to_node[apic_id] = node; node_set(node, cpu_nodes_parsed); acpi_numa = 1; - printk(KERN_INFO "SRAT: PXM %u -> APIC %u -> Node %u\n", - pxm, apic_id, node); + if (node < 2 || !limit_console_output(false)) + printk(KERN_INFO "SRAT: PXM %u -> APIC %u -> Node %u\n", + pxm, apic_id, node); } /* Callback for Proximity Domain -> LAPIC mapping */ @@ -170,8 +171,9 @@ apicid_to_node[apic_id] = node; node_set(node, cpu_nodes_parsed); acpi_numa = 1; - printk(KERN_INFO "SRAT: PXM %u -> APIC %u -> Node %u\n", - pxm, apic_id, node); + if (node < 2 || !limit_console_output(false)) + printk(KERN_INFO "SRAT: PXM %u -> APIC %u -> Node %u\n", + pxm, apic_id, node); } #ifdef CONFIG_MEMORY_HOTPLUG_SPARSE -- -- 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/