From patchwork Tue Oct 26 02:06:54 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhang, Rui" X-Patchwork-Id: 280862 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 o9Q27kAn021123 for ; Tue, 26 Oct 2010 02:07:46 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756023Ab0JZCHp (ORCPT ); Mon, 25 Oct 2010 22:07:45 -0400 Received: from mga09.intel.com ([134.134.136.24]:41289 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755681Ab0JZCHp (ORCPT ); Mon, 25 Oct 2010 22:07:45 -0400 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 25 Oct 2010 19:07:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.58,238,1286175600"; d="scan'208";a="670802227" Received: from rui.sh.intel.com (HELO [10.239.13.24]) ([10.239.13.24]) by orsmga001.jf.intel.com with ESMTP; 25 Oct 2010 19:07:27 -0700 Subject: [PATCH] ACPI: install ACPI table handler before any dynamic tables being loaded From: Zhang Rui To: "Brown, Len" Cc: "linux-acpi@vger.kernel.org" , dennis.jansen@web.de, achiang@hp.com Date: Tue, 26 Oct 2010 10:06:54 +0800 Message-ID: <1288058814.2210.165.camel@rui> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 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 (demeter1.kernel.org [140.211.167.41]); Tue, 26 Oct 2010 02:07:46 +0000 (UTC) Index: linux-2.6/drivers/acpi/bus.c =================================================================== --- linux-2.6.orig/drivers/acpi/bus.c +++ linux-2.6/drivers/acpi/bus.c @@ -935,6 +935,12 @@ static int __init acpi_bus_init(void) goto error1; } + /* + * _PDC control method may load dynamic SSDT tables, + * and we need to install the table handler before that. + */ + acpi_sysfs_init(); + acpi_early_processor_set_pdc(); /* @@ -1026,7 +1032,6 @@ static int __init acpi_init(void) acpi_scan_init(); acpi_ec_init(); acpi_power_init(); - acpi_sysfs_init(); acpi_debugfs_init(); acpi_sleep_proc_init(); acpi_wakeup_device_init();