From patchwork Fri Jan 8 13:29:58 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhao, Yakui" X-Patchwork-Id: 71788 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o08DVvKi015105 for ; Fri, 8 Jan 2010 13:31:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752483Ab0AHNb4 (ORCPT ); Fri, 8 Jan 2010 08:31:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752502Ab0AHNb4 (ORCPT ); Fri, 8 Jan 2010 08:31:56 -0500 Received: from mga03.intel.com ([143.182.124.21]:32250 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752483Ab0AHNbz (ORCPT ); Fri, 8 Jan 2010 08:31:55 -0500 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 08 Jan 2010 05:31:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.47,316,1257148800"; d="scan'208";a="230635964" Received: from yakui_zhao.sh.intel.com (HELO localhost.localdomain) ([10.239.13.112]) by azsmga001.ch.intel.com with ESMTP; 08 Jan 2010 05:31:54 -0800 From: yakui.zhao@intel.com To: lenb@kernel.org Cc: linux-acpi@vger.kernel.org, Zhao Yakui Subject: [PATCH] ACPI: Set \_SB.OSC capbility bit to evaluate _OST for _PPC change notification Date: Fri, 8 Jan 2010 21:29:58 +0800 Message-Id: <1262957398-7154-1-git-send-email-yakui.zhao@intel.com> X-Mailer: git-send-email 1.5.4.5 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index ae9226d..b70cd37 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -490,9 +490,14 @@ static void acpi_bus_osc_support(void) capbuf[OSC_QUERY_TYPE] = OSC_QUERY_ENABLE; capbuf[OSC_SUPPORT_TYPE] = OSC_SB_PR3_SUPPORT; /* _PR3 is in use */ -#ifdef CONFIG_ACPI_PROCESSOR_AGGREGATOR +#if defined(CONFIG_ACPI_PROCESSOR_AGGREGATOR) ||\ + defined(CONFIG_ACPI_PROCESSOR_AGGREGATOR_MODULE) capbuf[OSC_SUPPORT_TYPE] |= OSC_SB_PAD_SUPPORT; #endif + +#if defined(CONFIG_ACPI_PROCESSOR) || defined(CONFIG_ACPI_PROCESSOR_MODULE) + capbuf[OSC_SUPPORT_TYPE] |= OSC_SB_PPC_OST_SUPPORT; +#endif if (ACPI_FAILURE(acpi_get_handle(NULL, "\\_SB", &handle))) return; if (ACPI_SUCCESS(acpi_run_osc(handle, &context)))