From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752851AbZJWXhy (ORCPT ); Fri, 23 Oct 2009 19:37:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751728AbZJWXhw (ORCPT ); Fri, 23 Oct 2009 19:37:52 -0400 Received: from relay2.sgi.com ([192.48.179.30]:54732 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752548AbZJWXhu (ORCPT ); Fri, 23 Oct 2009 19:37:50 -0400 Message-Id: <20091023233750.702443000@alcatraz.americas.sgi.com> References: <20091023233743.439628000@alcatraz.americas.sgi.com> User-Agent: quilt/0.46-1 Date: Fri, 23 Oct 2009 18:37:46 -0500 From: Mike Travis To: Ingo Molnar , Thomas Gleixner , Andrew Morton Cc: Jack Steiner , "H. Peter Anvin" , x86@kernel.org, David Rientjes , Yinghai Lu , Mel Gorman , linux-kernel@vger.kernel.org Subject: [PATCH 3/8] SGI x86_64 UV: Limit the number of number of SRAT messages Content-Disposition: inline; filename=limit_srat Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --