From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lorenzo Pieralisi Subject: Re: [update][PATCH v10 06/21] ACPI / sleep: Introduce CONFIG_ACPI_GENERIC_SLEEP Date: Tue, 17 Mar 2015 12:35:36 +0000 Message-ID: <20150317123536.GB14984@red-moon> References: <1426234469-6434-1-git-send-email-hanjun.guo@linaro.org> <3737028.Ib0fKlgSkd@vostro.rjw.lan> <5507933F.2020203@huawei.com> <10995588.scpoK3KRg2@vostro.rjw.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from foss.arm.com ([217.140.101.70]:58871 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752096AbbCQMff (ORCPT ); Tue, 17 Mar 2015 08:35:35 -0400 Content-Disposition: inline In-Reply-To: <10995588.scpoK3KRg2@vostro.rjw.lan> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: "Rafael J. Wysocki" Cc: "guohanjun@huawei.com" , "hanjun.guo@linaro.org" , Catalin Marinas , Will Deacon , Olof Johansson , "grant.likely@linaro.org" , Arnd Bergmann , Mark Rutland , "graeme.gregory@linaro.org" , Sudeep Holla , "jcm@redhat.com" , Marc Zyngier , Mark Brown , Robert Richter , Timur Tabi , Ashwin Chaugule , "suravee.suthikulpanit@amd.com" , "linux-acpi@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" "linux-kernel@vger.kernel.org"
  • On Tue, Mar 17, 2015 at 03:23:11AM +0000, Rafael J. Wysocki wrote: [...] > > Do you mean remove CONFIG_ACPI_GENERIC_SLEEP and > > > > +acpi-$(CONFIG_ACPI_SLEEP) += sleep.o > > > > as well (also need to remove duplicate #ifdef CONFIG_ACPI_SLEEP in sleep.c if > > we doing so)? > > Well, almost. There is one problem with that, becuase sleep.c contains code > outside of the ACPI_SLEEP-dependent blocks. That code is used for powering > off ACPI platforms. > > I guess you don't want that code on ARM too, right? > > Perhaps we can use ACPI_REDUCED_HARDWARE_ONLY for that? ARM64 will be the > only arch setting it at least for the time being, is that correct? HW reduced only platforms are still required to support sleep states that on arm64 are totally meaningless at present, so I do not think ACPI_REDUCED_HARDWARE_ONLY will cut it. Factoring out power_off methods from sleep.c ? I know, it is not nicer since you split the S-states management in multiple files. Side note: is the acpi_suspend() function in sleep.c used in the kernel ? Lorenzo