From patchwork Tue Mar 17 22:33:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 45906 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7DFF321547 for ; Tue, 17 Mar 2015 22:35:07 +0000 (UTC) Received: by wibbs8 with SMTP id bs8sf4608202wib.3 for ; Tue, 17 Mar 2015 15:35:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=3u7TCaagcL4Qw5oQ6Mu9USYD9rvRedOUjShfuCEEATA=; b=OjpFE5HxKrIclH7v+GDUPjLbkPhBcGOAnKx39OteqebQlF//9IOc3c6OmfO81Gwabc bDyM7UUgxgWlJYIkkUlTQVyHZIm0W1n2QGEQT0JBmWGGB/cCtRI5kclr8tADwu0I5Y7G AWPtB3veVV3UhKkVyjB8kGblksdyybIhNgk7lJQRIau9G39ZstAoWLbgMyH3FoqVrB0Z GDW9tOvTVEOKmY7u8P67PvotZXNpAN40mIHssjnwt0+8nOAPzX5dt07JTTrNjczSaQ/h MTvWMd/cxznN3y8t6XCAtJ4e6Hd8LarMTc6LzyWk9WOSnPUeKXtQ8z0pOyRFsnK/9Dak QNHg== X-Gm-Message-State: ALoCoQmeQ2cwgiCnfED6vlgnNYGAPyJXgzOPUy0nEP1Xi7VrCvw1y5gdTilXmsnK28a2IgSF72Mw X-Received: by 10.112.142.1 with SMTP id rs1mr8473980lbb.19.1426631706710; Tue, 17 Mar 2015 15:35:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.180.106.70 with SMTP id gs6ls193180wib.12.gmail; Tue, 17 Mar 2015 15:35:06 -0700 (PDT) X-Received: by 10.152.203.134 with SMTP id kq6mr42177822lac.110.1426631706315; Tue, 17 Mar 2015 15:35:06 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id b6si11536765lbd.173.2015.03.17.15.35.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Mar 2015 15:35:05 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lbcds1 with SMTP id ds1so17638625lbc.3 for ; Tue, 17 Mar 2015 15:35:05 -0700 (PDT) X-Received: by 10.152.26.201 with SMTP id n9mr61098763lag.29.1426631705759; Tue, 17 Mar 2015 15:35:05 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp797887lbj; Tue, 17 Mar 2015 15:35:04 -0700 (PDT) X-Received: by 10.70.61.202 with SMTP id s10mr128837822pdr.86.1426631684015; Tue, 17 Mar 2015 15:34:44 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f2si31927613pas.167.2015.03.17.15.34.42; Tue, 17 Mar 2015 15:34:44 -0700 (PDT) Received-SPF: none (google.com: linux-arm-msm-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932736AbbCQWef (ORCPT + 5 others); Tue, 17 Mar 2015 18:34:35 -0400 Received: from mail-pd0-f178.google.com ([209.85.192.178]:33744 "EHLO mail-pd0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932523AbbCQWed (ORCPT ); Tue, 17 Mar 2015 18:34:33 -0400 Received: by pdnc3 with SMTP id c3so22542734pdn.0 for ; Tue, 17 Mar 2015 15:34:33 -0700 (PDT) X-Received: by 10.66.124.164 with SMTP id mj4mr157039373pab.83.1426631673204; Tue, 17 Mar 2015 15:34:33 -0700 (PDT) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by mx.google.com with ESMTPSA id n10sm11749880pdk.68.2015.03.17.15.34.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Mar 2015 15:34:32 -0700 (PDT) From: Lina Iyer To: daniel.lezcano@linaro.org, khilman@linaro.org, sboyd@codeaurora.org, galak@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: lorenzo.pieralisi@arm.com, msivasub@codeaurora.org, devicetree@vger.kernel.org, agross@codeaurora.org, Lina Iyer , Arnd Bergmann Subject: [PATCH v16 04/11] ARM: cpuidle: Add cpuidle support for QCOM cpus Date: Tue, 17 Mar 2015 16:33:44 -0600 Message-Id: <1426631631-56937-5-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1426631631-56937-1-git-send-email-lina.iyer@linaro.org> References: <1426631631-56937-1-git-send-email-lina.iyer@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lina.iyer@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Register cpuidle ops for Krait Processor Sub-System. Supports v1 and v2 versions of KPSS. Define ARM_QCOM_CPUIDLE config item to enable cpuidle support. Cc: Stephen Boyd Cc: Arnd Bergmann Cc: Kevin Hilman Cc: Daniel Lezcano Signed-off-by: Lina Iyer --- arch/arm/include/asm/cpuidle_ops.h | 5 +++++ drivers/cpuidle/Kconfig.arm | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/arch/arm/include/asm/cpuidle_ops.h b/arch/arm/include/asm/cpuidle_ops.h index be0a612..adc8874 100644 --- a/arch/arm/include/asm/cpuidle_ops.h +++ b/arch/arm/include/asm/cpuidle_ops.h @@ -1,3 +1,8 @@ /* * List of cpuidle operations */ + +#if IS_ENABLED(CONFIG_ARM_QCOM_CPUIDLE) +CPUIDLE_OPS(qcom_kpss_v1) +CPUIDLE_OPS(qcom_kpss_v2) +#endif diff --git a/drivers/cpuidle/Kconfig.arm b/drivers/cpuidle/Kconfig.arm index 1ab9a48..b1494acb 100644 --- a/drivers/cpuidle/Kconfig.arm +++ b/drivers/cpuidle/Kconfig.arm @@ -75,3 +75,10 @@ config ARM_MVEBU_V7_CPUIDLE depends on ARCH_MVEBU help Select this to enable cpuidle on Armada 370, 38x and XP processors. + +config ARM_QCOM_CPUIDLE + bool "CPU Idle Driver for QCOM processors" + depends on ARCH_QCOM + select ARM_CPUIDLE + help + Select this to enable cpuidle on QCOM processors.