From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757179AbaIIQh6 (ORCPT ); Tue, 9 Sep 2014 12:37:58 -0400 Received: from service87.mimecast.com ([91.220.42.44]:42481 "EHLO service87.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754045AbaIIQh5 convert rfc822-to-8bit (ORCPT ); Tue, 9 Sep 2014 12:37:57 -0400 Date: Tue, 9 Sep 2014 17:37:45 +0100 From: Catalin Marinas To: Hanjun Guo Cc: "Rafael J. Wysocki" , Mark Rutland , Olof Johansson , "grant.likely@linaro.org" , "graeme.gregory@linaro.org" , Arnd Bergmann , Sudeep Holla , Will Deacon , Jason Cooper , Marc Zyngier , Bjorn Helgaas , Daniel Lezcano , Mark Brown , Rob Herring , Robert Richter , Lv Zheng , Robert Moore , Lorenzo Pieralisi , Liviu Dudau , Randy Dunlap , Charles Garcia-Tobin , "linux-acpi@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linaro-acpi@lists.linaro.org" , Al Stone Subject: Re: [PATCH v3 04/17] ARM64 / ACPI: Introduce early_param for "acpi" Message-ID: <20140909163745.GB6370@arm.com> References: <1409583475-6978-1-git-send-email-hanjun.guo@linaro.org> <1409583475-6978-5-git-send-email-hanjun.guo@linaro.org> MIME-Version: 1.0 In-Reply-To: <1409583475-6978-5-git-send-email-hanjun.guo@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-OriginalArrivalTime: 09 Sep 2014 16:37:51.0752 (UTC) FILETIME=[65FA5880:01CFCC4C] X-MC-Unique: 114090917375401501 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: 8BIT Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 01, 2014 at 03:57:42PM +0100, Hanjun Guo wrote: > --- a/arch/arm64/kernel/acpi.c > +++ b/arch/arm64/kernel/acpi.c > @@ -74,3 +74,18 @@ void __init acpi_boot_table_init(void) > * TBD when ARM/ARM64 starts to support suspend... > */ > int (*acpi_suspend_lowlevel)(void) = NULL; > + > +static int __init parse_acpi(char *arg) > +{ > + if (!arg) > + return -EINVAL; > + > + /* "acpi=off" disables both ACPI table parsing and interpreter */ > + if (strcmp(arg, "off") == 0) > + disable_acpi(); > + else > + return -EINVAL; /* Core will print when we return error */ > + > + return 0; > +} > +early_param("acpi", parse_acpi); I forgot about early param, so there is a way to set acpi_disabled to 1 before populating the tables. -- Catalin