Received: by 10.223.176.46 with SMTP id f43csp4315278wra; Tue, 23 Jan 2018 07:37:52 -0800 (PST) X-Google-Smtp-Source: AH8x2269EH7dgdPOXE2sZj1j1FcKhXXOXiE5HEcs6PZocF9pOAmCn3wQDmKp0J1x/ispZoWNthI5 X-Received: by 10.107.133.163 with SMTP id p35mr4209176ioi.44.1516721872631; Tue, 23 Jan 2018 07:37:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516721872; cv=none; d=google.com; s=arc-20160816; b=HUgkEtABJO5Ill4H7slMxCm5TUJ6dZnXs7LCkmZf6AkTVT/l6H1OgvgnX7nrIzWzIQ UmmzCWwJJgrWnwP5qZBsOTmKIcjiUKWRxUDHlG0zULOpx/WcEVB/uh2AnpzUHvEaUkTn oyH+f5sy5BZocRcDWe7AlSVaqQkRAeLxIXCL8ZfX2TVLN6usrajgDmAvCyhi8mlCqfmD 6EwOkiFUlKNq6RqYH3DvY+Dv/I9YVQbFj/FdpsvakEhzbiRARzXKgVK5GwccFjQ+QnlE uqDUC5Ra55FVCweSHhms+qJaxf2A72LShxY4Pm0/ngI6GBpsYPQImkYhIRqOVZKZBtSV S2lA== 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=XJEhCncy4E2EioCcR4n+WJOsQasWnzGGD741OEpK8n8xfE7T2VoKZZI17meeGbo0Pt lj34m0zwyWpD9CUQPbMs57vOOiKPpE+1fwr278qakhvkZUaNCYFRqRBOaPF9SIbzm/W5 js1AtKRUnyqJGGSBe5fzeMov5FDLM7IvqQJzmweeaFWu/B0Ltxbx2XWfVCCGyz2/oPVF JSCJCcCkwagFkcqlb+tB+bfc2Rz2pckGWUjEOeWXdw6rGKob0j/kaoIhFrC+IGb4nq8F 6V5Mi3pvxP+t724JFOMZa2RSpY3M/dTafdK4bCcgnx8u2/nZcsX3RG4ljA/h4WeaJkNN A6bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FT8MOBkw; 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 h22si12073594iob.306.2018.01.23.07.37.39; Tue, 23 Jan 2018 07:37:52 -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=FT8MOBkw; 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 S1752021AbeAWPgP (ORCPT + 99 others); Tue, 23 Jan 2018 10:36:15 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33646 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751720AbeAWPfo (ORCPT ); Tue, 23 Jan 2018 10:35:44 -0500 Received: by mail-wm0-f67.google.com with SMTP id x4so22525239wmc.0 for ; Tue, 23 Jan 2018 07:35:44 -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=FT8MOBkwkq1sy3NqB2w5w9gxP/jL9erx6ulCWGFlTwcPjS5XHeHNT9+/KEdz3DNzm4 YqqQKIkmglypoReHrx5gjN3WnYP5ElKC5ehUtBYRlzxvq+MKMcV24uFXgs+jYcm9I7rG dc8D//J1ydwHFAmVGDO8HpxQ8GKrFvZmvfUek= 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=uNoLRSXBm3P2dL0g9NOEt9j9cK49IohYZG8iJA1iHN2Q0syxbgJZQ7l4f6OIcU1zi8 GmWw44cFVnok7dcsf+wIbTimFHniQZpxPHyOxQqfjBlLtQQvwa060RnbknP41jOYXR9c TBkHiQ9i6+8ioJNaijcZFFgIV3wXwcQGhoSiGg7ft3SzZfNq6QuMtFB5SbiswkBSAh7s xzq9w3agpuZX3awOtEBqUKlMi/ppSBFTUUM7PxMCBV9mUPC4QZXiJyKmPqMC7q9SsmQ7 b+9m8UTrQ+eafJmlIO/nisIXRmh5H71HNVZzGaoqeL5k3hi3d/JpH1CIrh+XKazbVmk+ lB5g== X-Gm-Message-State: AKwxyte+IuGlqjSeugUQ9Qvyrv6kEnO1V25xPt+obkuvPvBXYKvWMpl7 OZOe6OVttLMcesWrqT3J/+JhgA== X-Received: by 10.28.17.141 with SMTP id 135mr2087744wmr.80.1516721743689; Tue, 23 Jan 2018 07:35:43 -0800 (PST) Received: from localhost.localdomain ([2a01:e35:879a:6cd0:8138:f09d:5869:1250]) by smtp.gmail.com with ESMTPSA id o98sm915624wrb.19.2018.01.23.07.35.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 23 Jan 2018 07:35:43 -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, viresh.kumar@linaro.org, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , linux-pm@vger.kernel.org (open list:CPUIDLE DRIVERS) Subject: [PATCH 7/8] cpuidle/drivers/cpuidle-arm: Register the cooling device Date: Tue, 23 Jan 2018 16:34:30 +0100 Message-Id: <1516721671-16360-8-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516721671-16360-1-git-send-email-daniel.lezcano@linaro.org> References: <1516721671-16360-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(+) 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: -- 2.7.4