From patchwork Wed Jan 19 23:01:08 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Travis X-Patchwork-Id: 490671 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 p0JN26jG030823 for ; Wed, 19 Jan 2011 23:02:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755142Ab1ASXBT (ORCPT ); Wed, 19 Jan 2011 18:01:19 -0500 Received: from relay2.sgi.com ([192.48.179.30]:51981 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755132Ab1ASXBS (ORCPT ); Wed, 19 Jan 2011 18:01:18 -0500 Received: from gulag1.americas.sgi.com (gulag1.americas.sgi.com [128.162.236.41]) by relay2.corp.sgi.com (Postfix) with ESMTP id ED99530406B; Wed, 19 Jan 2011 15:01:06 -0800 (PST) Received: by gulag1.americas.sgi.com (Postfix, from userid 5508) id C5FCA1037689F; Wed, 19 Jan 2011 17:01:06 -0600 (CST) Message-Id: <20110119230106.667109717@gulag1.americas.sgi.com> References: <20110119230106.341785959@gulag1.americas.sgi.com> User-Agent: quilt/0.46-1 Date: Wed, 19 Jan 2011 17:01:08 -0600 From: Mike Travis To: Ingo Molnar , Len Brown , "H. Peter Anvin" Cc: Thomas Gleixner , Jack Steiner , Robin Holt , Lori Gilbertson , x86@kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH 2/6] 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]); Wed, 19 Jan 2011 23:02:07 +0000 (UTC) --- linux-2.6.32.orig/arch/x86/kernel/acpi/boot.c +++ linux-2.6.32/arch/x86/kernel/acpi/boot.c @@ -848,6 +848,9 @@ static int __init acpi_parse_madt_lapic_ if (!count) { x2count = acpi_table_parse_madt(ACPI_MADT_TYPE_LOCAL_X2APIC, acpi_parse_x2apic, MAX_APICS); + /* insure trailing newline is output */ + pr_cont("\n"); + count = acpi_table_parse_madt(ACPI_MADT_TYPE_LOCAL_APIC, acpi_parse_lapic, MAX_APICS); } --- linux-2.6.32.orig/drivers/acpi/tables.c +++ linux-2.6.32/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;