From patchwork Wed Feb 21 15:29:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 129086 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp750768ljc; Wed, 21 Feb 2018 07:30:14 -0800 (PST) X-Google-Smtp-Source: AH8x224dHqMxLFWY4jKhLyQPwgfN7vrS8NTX942eP+2qiYBnJbvQka33btn0gybJQpJElCpETDLT X-Received: by 10.101.80.3 with SMTP id f3mr3098813pgo.242.1519227013987; Wed, 21 Feb 2018 07:30:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519227013; cv=none; d=google.com; s=arc-20160816; b=RhJZg1i8db99nHYTQk2cQhNoM984YZpTZ7TcD/vgIRgDNi0/sUdX+DKXSZD/vsMgam 1G22mSAjtro4fZFHWGLPbvezy266zXzInxA2R11gue9h92k8Svym0I6j3sG+Swya7Jld xQFd6HkVlCEkYHk2Foy/Ydb4xU1KinyOOU5LLbh/cbfxCSmo46oHsEJIC2CpXaTp1ab7 ahjMDcr2UXNZ73b5rYhc76mMLUi2azy76wgrP7NtkEECxgh47yC+NPkDpaUJvq72C20o kYOKS2sUbjmFutp9e9rgMXU45+BIImWZDMWlAVXO3E70PKWZo0VVuhxjr8eAsf/s1nH9 R8hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=ZqxBlmNsHznBskX1KBTP0UGbIstMc1gUTKwTLHUhTJE=; b=hNsrJREDaSPeTHLfVtW0oBFK8ESFWyi4DCby7dPFauGFNCf1UFPXciaV3/nO7v9jS9 DR0SrSoxalW5NO2RUGOEBAuMR7havoT2sV9/N/ELpRucZJmbihY9kwL3clEgEse081Ai bQA1H4dU8tbZhAX7QpmB3YNCqCe1w1BjAkRYcB0cH+55NB5hOBYmC6Q9HbZGrwpgtZwD B6hl3gtwoOsDEYDo1ssvTvwD4AAnv3WXuY5fWpTvt0zgYINOOUyXIB59tNH7GhPNEdIt KdVWj/4yA+PHRgLE/Ic3SX72SNTC6yBf6IVu/KCaQsTmaxr0Rwqk6vJALG981HFztk73 E2uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Js+ESfZu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r4si1203020pgp.603.2018.02.21.07.30.13; Wed, 21 Feb 2018 07:30:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Js+ESfZu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938354AbeBUPaJ (ORCPT + 28 others); Wed, 21 Feb 2018 10:30:09 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:39530 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938327AbeBUPaC (ORCPT ); Wed, 21 Feb 2018 10:30:02 -0500 Received: by mail-wr0-f196.google.com with SMTP id w77so5602669wrc.6 for ; Wed, 21 Feb 2018 07:30:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZqxBlmNsHznBskX1KBTP0UGbIstMc1gUTKwTLHUhTJE=; b=Js+ESfZubhJgUaTrLDJBqPj/9NIEKV6I+ePSvi8R9NFJhQZuWnEmigEL3frvl08a6+ uBa/hwdIJE8N5cJ7/NUAKMzfMMMW9L4NgyYTkaYrzcXzlEjAEbglNFVBzy4+nvkZtuay lwVryUBoeGOect0PiXamXDQGKLqzU7Zc6YwtY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZqxBlmNsHznBskX1KBTP0UGbIstMc1gUTKwTLHUhTJE=; b=mn9OpnRPCHkkQvBt/XTAU6bu3HuUlW3KSH6uZTnP/Ey2TBvKWRDLgndnqLiVCjR6iB edmb2VpLY2X/2L+HAN98ZA2bpmvrzm4mh93AqMsZ4vnaSH0/oOKHX9KgTgtw+6AoN9kU /6wKP6Ox77rZVsme0GmJBTw9hLuM8nMkR5yllzCfANndTE9WVd6OfKp/3uX+qi1R7Cwk 9r3f7yPT2JixfaXQy/F/ddUWqutBbcfpsIJedA9Z8FAWB77hGZhULVoX9Sxp5qGF7i9z iFNS3PkAxksG86B/9a1Owc5m31C2Riv2EJMczo5F2dx467h3o/tbglKmiCCDd3BmK6SS agaQ== X-Gm-Message-State: APf1xPB/eVxhk3wDlLVIw8PC/xLY21yHNZQuOO+tlPKxyY2cy0IQAOx4 6YvgrtpM8S0KYvErymXVW+3YFg== X-Received: by 10.223.134.12 with SMTP id 12mr3291571wrv.193.1519227000876; Wed, 21 Feb 2018 07:30:00 -0800 (PST) Received: from localhost.localdomain ([2a01:e35:879a:6cd0:c4f2:763f:443f:f48]) by smtp.gmail.com with ESMTPSA id 32sm26552736wrm.14.2018.02.21.07.29.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 21 Feb 2018 07:29:59 -0800 (PST) From: Daniel Lezcano To: edubezval@gmail.com Cc: kevin.wangtao@linaro.org, leo.yan@linaro.org, vincent.guittot@linaro.org, amit.kachhap@gmail.com, linux-kernel@vger.kernel.org, javi.merino@kernel.org, rui.zhang@intel.com, daniel.thompson@linaro.org, linux-pm@vger.kernel.org, "Rafael J. Wysocki" Subject: [PATCH V2 7/7] cpuidle/drivers/cpuidle-arm: Register the cooling device Date: Wed, 21 Feb 2018 16:29:28 +0100 Message-Id: <1519226968-19821-8-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519226968-19821-1-git-send-email-daniel.lezcano@linaro.org> References: <1519226968-19821-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Register the ARM generic cpuidle driver as a cooling device. Signed-off-by: Daniel Lezcano --- drivers/cpuidle/cpuidle-arm.c | 5 +++++ 1 file changed, 5 insertions(+) -- 2.7.4 diff --git a/drivers/cpuidle/cpuidle-arm.c b/drivers/cpuidle/cpuidle-arm.c index ddee1b6..c100915 100644 --- a/drivers/cpuidle/cpuidle-arm.c +++ b/drivers/cpuidle/cpuidle-arm.c @@ -11,6 +11,7 @@ #define pr_fmt(fmt) "CPUidle arm: " fmt +#include #include #include #include @@ -172,6 +173,10 @@ static int __init arm_idle_init(void) goto out_fail; } + ret = cpuidle_cooling_register(); + if (ret) + pr_warn("Failed to register the cpuidle cooling device\n"); + return 0; out_fail: