From patchwork Thu Feb 17 18:51:32 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Travis X-Patchwork-Id: 571621 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1HIr0Bq004852 for ; Thu, 17 Feb 2011 18:53:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757597Ab1BQSvg (ORCPT ); Thu, 17 Feb 2011 13:51:36 -0500 Received: from relay1.sgi.com ([192.48.179.29]:39365 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754853Ab1BQSvf (ORCPT ); Thu, 17 Feb 2011 13:51:35 -0500 Received: from gulag1.americas.sgi.com (gulag1.americas.sgi.com [128.162.236.41]) by relay1.corp.sgi.com (Postfix) with ESMTP id 5DACB8F80A1; Thu, 17 Feb 2011 10:51:32 -0800 (PST) Received: by gulag1.americas.sgi.com (Postfix, from userid 5508) id 3F03E1037A4E7; Thu, 17 Feb 2011 12:51:32 -0600 (CST) Message-Id: <20110217185132.137154887@gulag1.americas.sgi.com> References: <20110217185131.960038922@gulag1.americas.sgi.com> User-Agent: quilt/0.46-1 Date: Thu, 17 Feb 2011 12:51:32 -0600 From: Mike Travis To: Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" Cc: Andrew Morton , Len Brown , Yinghai Lu , linux-acpi@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/5] ACPI: Minimize X2APIC initial messages Content-Disposition: inline; filename=minimize-x2apic-msgs Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 17 Feb 2011 18:53:00 +0000 (UTC) --- linux.orig/arch/x86/kernel/acpi/boot.c +++ linux/arch/x86/kernel/acpi/boot.c @@ -903,6 +903,9 @@ static int __init acpi_parse_madt_lapic_ if (!count) { x2count = acpi_table_parse_madt(ACPI_MADT_TYPE_LOCAL_X2APIC, acpi_parse_x2apic, MAX_LOCAL_APIC); + /* insure trailing newline is output */ + pr_cont("\n"); + count = acpi_table_parse_madt(ACPI_MADT_TYPE_LOCAL_APIC, acpi_parse_lapic, MAX_LOCAL_APIC); } --- linux.orig/drivers/acpi/tables.c +++ linux/drivers/acpi/tables.c @@ -66,11 +66,16 @@ void acpi_table_print_madt_entry(struct { struct acpi_madt_local_x2apic *p = (struct acpi_madt_local_x2apic *)header; - printk(KERN_INFO PREFIX - "X2APIC (apic_id[0x%02x] uid[0x%02x] %s)\n", + + if ((p->uid & 7) == 0) + pr_info(PREFIX "X2APIC apic_id=uid:"); + + pr_cont(" %02x=%02x%s%s", p->local_apic_id, p->uid, - (p->lapic_flags & ACPI_MADT_ENABLED) ? - "enabled" : "disabled"); + /* assume "enabled" unless "disabled" */ + (p->lapic_flags & ACPI_MADT_ENABLED) ? + "" : " disabled", + (p->uid & 7) == 7 ? "\n" : ""); } break;