From patchwork Sat Feb 19 02:47:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Travis X-Patchwork-Id: 574381 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 p1J2mfFa025294 for ; Sat, 19 Feb 2011 02:48:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756047Ab1BSCrc (ORCPT ); Fri, 18 Feb 2011 21:47:32 -0500 Received: from relay1.sgi.com ([192.48.179.29]:44611 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752973Ab1BSCrL (ORCPT ); Fri, 18 Feb 2011 21:47:11 -0500 Received: from gulag1.americas.sgi.com (gulag1.americas.sgi.com [128.162.236.41]) by relay1.corp.sgi.com (Postfix) with ESMTP id 139C08F80C6; Fri, 18 Feb 2011 18:47:05 -0800 (PST) Received: by gulag1.americas.sgi.com (Postfix, from userid 5508) id A754D10398E66; Fri, 18 Feb 2011 20:47:05 -0600 (CST) Message-Id: <20110219024705.559950799@gulag1.americas.sgi.com> References: <20110219024705.308511527@gulag1.americas.sgi.com> User-Agent: quilt/0.46-1 Date: Fri, 18 Feb 2011 20:47:06 -0600 From: Mike Travis To: Ingo Molnar Cc: Jack Steiner , Robin Holt , Len Brown , Thomas Gleixner , "H. Peter Anvin" , Andrew Morton , Yinghai Lu , linux-acpi@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/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]); Sat, 19 Feb 2011 02:48:41 +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,17 @@ 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", - p->local_apic_id, p->uid, - (p->lapic_flags & ACPI_MADT_ENABLED) ? - "enabled" : "disabled"); + + if ((p->uid & 7) == 0) + pr_info(PREFIX "X2APIC apic_id=uid:"); + + pr_cont(" %02x=%02x%s%s", + p->local_apic_id, p->uid, + /* assume "enabled" unless "disabled" */ + (p->lapic_flags & ACPI_MADT_ENABLED) ? + "" : " disabled", + /* nl every 8th item */ + (p->uid & 7) == 7 ? "\n" : ""); } break;