From patchwork Thu Jul 22 21:40:02 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Len Brown X-Patchwork-Id: 113779 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6MLepq2024067 for ; Thu, 22 Jul 2010 21:42:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759945Ab0GVVkY (ORCPT ); Thu, 22 Jul 2010 17:40:24 -0400 Received: from vms173019pub.verizon.net ([206.46.173.19]:49734 "EHLO vms173019pub.verizon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759731Ab0GVVkW (ORCPT ); Thu, 22 Jul 2010 17:40:22 -0400 Received: from localhost.localdomain ([unknown] [64.140.212.33]) by vms173019.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L5Z004VIAUS4LR4@vms173019.mailsrvcs.net>; Thu, 22 Jul 2010 16:40:11 -0500 (CDT) Received: from localhost.localdomain (x980 [127.0.0.1]) by localhost.localdomain (8.14.4/8.14.4) with ESMTP id o6MLe3jJ013007; Thu, 22 Jul 2010 17:40:03 -0400 Received: from localhost (lenb@localhost) by localhost.localdomain (8.14.4/8.14.4/Submit) with ESMTP id o6MLe2fY013002; Thu, 22 Jul 2010 17:40:02 -0400 X-Authentication-warning: localhost.localdomain: lenb owned process doing -bs Date: Thu, 22 Jul 2010 17:40:02 -0400 (EDT) From: Len Brown X-X-Sender: lenb@localhost.localdomain To: Andi Kleen Cc: Matthew Garrett , "Yu, Luming" , Philip Langdale , Jeff Garrett , Linux Kernel Mailing List , "linux-acpi@vger.kernel.org" , "venki@google.com" Subject: [PATCH] ACPI: create "processor.bm_check_disable" boot param In-reply-to: Message-id: References: <20100427124703.GA16706@jgarrett.org> <20100430174447.GA14889@srcf.ucam.org> <20100525124325.GC7876@srcf.ucam.org> <20100525185507.GA15997@srcf.ucam.org> <20100722074750.GA22520@one.firstfloor.org> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII 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.3 (demeter.kernel.org [140.211.167.41]); Thu, 22 Jul 2010 21:42:15 +0000 (UTC) diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index b351342..1d41048 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -76,6 +76,8 @@ static unsigned int max_cstate __read_mostly = ACPI_PROCESSOR_MAX_POWER; module_param(max_cstate, uint, 0000); static unsigned int nocst __read_mostly; module_param(nocst, uint, 0000); +static int bm_check_disable __read_mostly; +module_param(bm_check_disable, uint, 0000); static unsigned int latency_factor __read_mostly = 2; module_param(latency_factor, uint, 0644); @@ -763,6 +765,9 @@ static int acpi_idle_bm_check(void) { u32 bm_status = 0; + if (bm_check_disable) + return 0; + acpi_read_bit_register(ACPI_BITREG_BUS_MASTER_STATUS, &bm_status); if (bm_status) acpi_write_bit_register(ACPI_BITREG_BUS_MASTER_STATUS, 1);