From patchwork Mon Jul 4 03:13:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoquan He X-Patchwork-Id: 9211563 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B083D60752 for ; Mon, 4 Jul 2016 03:14:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A36E228538 for ; Mon, 4 Jul 2016 03:14:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 96B7228619; Mon, 4 Jul 2016 03:14:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 41F2728538 for ; Mon, 4 Jul 2016 03:14:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932512AbcGDDOG (ORCPT ); Sun, 3 Jul 2016 23:14:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50903 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932249AbcGDDOG (ORCPT ); Sun, 3 Jul 2016 23:14:06 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5758D3B3C0; Mon, 4 Jul 2016 03:14:04 +0000 (UTC) Received: from x1.redhat.com (vpn1-4-56.pek2.redhat.com [10.72.4.56]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u643E1RE018513; Sun, 3 Jul 2016 23:14:02 -0400 From: Baoquan He To: rjw@rjwysocki.net, lenb@kernel.org Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Baoquan He Subject: [PATCH] ACPI/init: Correct the comments about acpi_subsystem_init Date: Mon, 4 Jul 2016 11:13:59 +0800 Message-Id: <1467602039-13186-1-git-send-email-bhe@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Mon, 04 Jul 2016 03:14:04 +0000 (UTC) Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP In acpi_subsystem_init, function acpi_enable_subsystem is called to do the real job. However with different flags passed to acpi_enable_subsystem, different code is executed. In acpi_subsystem_init with "~ACPI_NO_ACPI_ENABLE" passed in it will only switch over the platform to the ACPI mode. The rest part of acpi_enable_subsystem is done when acpi_bus_init is called. So the comments above acpi_subsystem_init is not exact, change it here. Signed-off-by: Baoquan He --- drivers/acpi/bus.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 262ca31..eef468d 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -961,8 +961,7 @@ void __init acpi_early_init(void) /** * acpi_subsystem_init - Finalize the early initialization of ACPI. * - * Switch over the platform to the ACPI mode (if possible), initialize the - * handling of ACPI events, install the interrupt and global lock handlers. + * Switch over the platform to the ACPI mode (if possible). * * Doing this too early is generally unsafe, but at the same time it needs to be * done before all things that really depend on ACPI. The right spot appears to