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: 6035101 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4D4D3BF90F for ; Tue, 17 Mar 2015 22:39:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8136D20426 for ; Tue, 17 Mar 2015 22:39:06 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7F32120425 for ; Tue, 17 Mar 2015 22:39:05 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YY06H-0000wD-GP; Tue, 17 Mar 2015 22:36:37 +0000 Received: from mail-pa0-f53.google.com ([209.85.220.53]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YY04c-0007Xm-Ea for linux-arm-kernel@lists.infradead.org; Tue, 17 Mar 2015 22:34:55 +0000 Received: by padcy3 with SMTP id cy3so22201542pad.3 for ; Tue, 17 Mar 2015 15:34:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=l4I+dMMl5Bd6aopQMeZD0rGaXqSDwbI8YOJSO2GjH1g=; b=JfXnWD+LC0M7mms9b56vTPTMhNMXWqlB2/oie1I2Dlb2NdDmu7EsIwi8MJDdgPjyr4 EXrV6yAtlQlNzCbQP4N/4qDC+c029DPLzo55ueWcF94kF1xuAoji0VXpaAweckJPytPp zWFUKwK6+f47OkLo/NCK+QM8G7W3Ja0kKJat4IiimfRt2OOQ9d5qUcfS46OR06F4RRfn IbVaRNCR4/r4J4IMbErJCzBfL/QEwzoKIr7/YH6PdjFRTcyFCp7KvXGqzVDHHVhEWcGo hYUoUQjaLuaDY7jbn6jBx1x0SVxkYo0tXzLhE8OrVMEmfTrd9EE+XussW15Aa1ErFVnI VJWg== X-Gm-Message-State: ALoCoQlkd0MvOegRmM5/LOz4Pyo0ibHHGrbXJQZdAOLwbzrp4x9UCzNtVOi0jbn4iP9ZYvCkU1MQ 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150317_153454_591336_D0D510E8 X-CRM114-Status: UNSURE ( 7.96 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: devicetree@vger.kernel.org, lorenzo.pieralisi@arm.com, Arnd Bergmann , msivasub@codeaurora.org, agross@codeaurora.org, Lina Iyer X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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.