From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755980AbcBPURR (ORCPT ); Tue, 16 Feb 2016 15:17:17 -0500 Received: from v094114.home.net.pl ([79.96.170.134]:53107 "HELO v094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751927AbcBPURP (ORCPT ); Tue, 16 Feb 2016 15:17:15 -0500 From: "Rafael J. Wysocki" To: Sudeep Holla Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org, x86@kernel.org, Al Stone , Lorenzo Pieralisi , Mahesh Sivasubramanian , Ashwin Chaugule , Prashanth Prakash Subject: Re: [PATCH v3 4/5] ACPI / processor_idle : introduce ARCH_SUPPORTS_ACPI_PROCESSOR_CSTATE Date: Tue, 16 Feb 2016 21:18:36 +0100 Message-ID: <12469811.iv3SctjXxl@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/4.5.0-rc1+; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1449065446-26115-5-git-send-email-sudeep.holla@arm.com> References: <1449065446-26115-1-git-send-email-sudeep.holla@arm.com> <1449065446-26115-5-git-send-email-sudeep.holla@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, December 02, 2015 02:10:45 PM Sudeep Holla wrote: > ACPI 6.0 adds a new method to specify the CPU idle states(C-states) > called Low Power Idle(LPI) states. Since new architectures like ARM64 > use only LPIs, introduce ARCH_SUPPORTS_ACPI_PROCESSOR_CSTATE to > encapsulate all the code supporting the old style C-states(_CST) No. The way it really should work is to check if the firmware supports LPI (and what kind of it) and try to use _CST if LPI is not supported. If LPI is supported by the firmware, use it if the LPI objects are present as expected or fall back to using _CST otherwise. This way it all should work without any new Kconfig options. Thanks, Rafael