Received: by 10.213.65.68 with SMTP id h4csp2121710imn; Thu, 5 Apr 2018 09:18:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx48tboIQNHXODq9BnGjZJkQhSVIUR/ZR5rrN2R/qjagwSR9dBTUPEU518rd2y8m/20Ohus/T X-Received: by 10.98.70.8 with SMTP id t8mr17744708pfa.185.1522945131815; Thu, 05 Apr 2018 09:18:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522945131; cv=none; d=google.com; s=arc-20160816; b=ioUj0/bd+ho9UEq2rlhkNpmcmlqPgrxy4dGX4Q7Vu2Tn8wltWxB/9BrswYJqaeVyJr lAyrw1HzESAi8bRxYyPdTB74u1JIndKac8gWFhjCOvYMKmvoiZhWGvkgL0JlXdI/loxv VHeqnB0ggYPbQ9KQ7Lk7vQW7VJTnN6piNIwuvHluHCwBvxbOWJMGP4NV6X4eP9UQ9pPB Mr6VjZZ1rkkmhMhk1+WzAZYbr4sV3WsdYCGlfCqd+U6zfcv1JkFokquRq1XRZt8TEPNK vTumUSGQl7eQpYxv4e9mo2XboPYGgv1jLsLYbcGhc6PYfG1ehEjW74MgVfAjSaC+CxNw YXDQ== 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=HMUgRsnp5i+EwldG5PrOxH3N+5NTckV2ApKZLinDzEI=; b=Dpi0lQv2js9jTN4gbOo/AOP33XkQeRi7j8lfuGYmEj8pVFQIK7da7x9Az7c0A4KLoj zGinYmAw276WE8jUTziA/VOY61xI9bDZFI7894YN9rOT0Y8uAHfjudCy8vRZ3KUtYWIO TYHi24wNmDpYz+0bRss1a9UARB7dHigIiG0fdql+HWw7pJWmiah7uTOz6PI/P9kYL9B3 /wjcgO4BFJ/6sydSQDHX3NZJh2C2z+8TmVn+czP6lYbjqCXPbGhGEHMZZopGIRZ463iY e/W9Kylk/OzRET84B8KZn4iu6ZMT4vx4bLsi98xfC1lCa0XmqzvuxU8hK8+EDO4h7N7s s5rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CJHPmo3/; 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 u3si1190460pfl.151.2018.04.05.09.18.37; Thu, 05 Apr 2018 09:18:51 -0700 (PDT) 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=CJHPmo3/; 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 S1751913AbeDEQRU (ORCPT + 99 others); Thu, 5 Apr 2018 12:17:20 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:38562 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751807AbeDEQRS (ORCPT ); Thu, 5 Apr 2018 12:17:18 -0400 Received: by mail-wr0-f195.google.com with SMTP id m13so29375662wrj.5 for ; Thu, 05 Apr 2018 09:17:18 -0700 (PDT) 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=HMUgRsnp5i+EwldG5PrOxH3N+5NTckV2ApKZLinDzEI=; b=CJHPmo3/KQZLNxpuo/olubojS9ajydW50SLNGVqTiXAKXuYXPKCIj7NiagpO64LnSc Izq8rg1BBjNcky6uZM2nCTgG9brvNLhSZZwW31RvtL4iXgPwi+8G5g5vu8XquIh2VoK9 MIqtu57iaqM0Qul2gKFU4j4D05zuo7IfyCFdY= 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=HMUgRsnp5i+EwldG5PrOxH3N+5NTckV2ApKZLinDzEI=; b=auRYzFc20EiG/tq0p0A8TxkZZKiPvcwD5IiH4/oIJaxU6slo59fFND5tdpijtLgAzc MOXJSfj9Sqb54T3+agb1FXGKipJxtgUxTkWlP0QbTZFWiT+9SfJl2K+knf6tWpd74W22 URee8GtuaXHMcIrYH2mMR+K7WmknflbzSYG0zYFrvuQUejJkmAfwrkfW0H7SxOrxvGlL YeUfHFTriAWxWSC04bUEvqMMeGKes7LDJulBba5Ga7mrca8hUJLzkq+Cs6zg7gC/MrJZ aBbIT0VfxwuLPm5oSEO+JjMfCyTaiNf6ECJBxFTAp07A2dFMtBDpxXhl8t/+GQYSgvzi qKSQ== X-Gm-Message-State: AElRT7EWA7wPa59gFlIMTCS2Ko31PD0KE3NO/ykhHDTBDjVLSXcESIDw hkT+Rc+XoP2ffg3ks/qpvxLq+Q== X-Received: by 10.223.226.14 with SMTP id j14mr15877725wri.17.1522945037536; Thu, 05 Apr 2018 09:17:17 -0700 (PDT) Received: from localhost.localdomain ([2a01:e35:879a:6cd0:d9b6:ce30:b76c:2e56]) by smtp.gmail.com with ESMTPSA id 39sm16103904wry.89.2018.04.05.09.17.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 05 Apr 2018 09:17:16 -0700 (PDT) From: Daniel Lezcano To: viresh.kumar@linaro.org, edubezval@gmail.com Cc: kevin.wangtao@linaro.org, leo.yan@linaro.org, vincent.guittot@linaro.org, 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 v3 7/7] cpuidle/drivers/cpuidle-arm: Register the cooling device Date: Thu, 5 Apr 2018 18:16:44 +0200 Message-Id: <1522945005-7165-8-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522945005-7165-1-git-send-email-daniel.lezcano@linaro.org> References: <1522945005-7165-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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/cpuidle/cpuidle-arm.c b/drivers/cpuidle/cpuidle-arm.c index ddee1b6..44b4fe3 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,8 @@ static int __init arm_idle_init(void) goto out_fail; } + cpuidle_cooling_register(); + return 0; out_fail: -- 2.7.4