Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3141352imu; Sun, 27 Jan 2019 22:45:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN5Ru9NQ6IJ7uLgCWGaMMs4DAIqz0BlcYWFswACbvqL7sW8vRUAko5pMU8teHhWkz2uSURDj X-Received: by 2002:a62:6e07:: with SMTP id j7mr21331057pfc.135.1548657943590; Sun, 27 Jan 2019 22:45:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548657943; cv=none; d=google.com; s=arc-20160816; b=RXwOuYdEG2tz/epbyGk9qAq03spgHqpedYLSvDccWIvRVOqWcd7nL+/exkhABBZkGw ajPiBmaeWjABdOdfLpyfL8DJM3eVBFdpHZMU38ByD8oyHFQSWgRcujJ7eySDKwl/HTtH J0qGHdfH5Xa4aG8C16wPv6tXhKI3fBk/ERLWv+vb3JMraBja64XfDUPHssy3A9BxC5Zs W6sekOXbTRdNT0QO6QTCiTVu+R6/hw02Whp5jqaiY4VqhdK1ffXov3A4qgnh5gQQI4ts 0oVzZ0K0G4sqfRKklEm7hYglRyH2D8R5Q9pOSB7t2F828sXA2QW4cPaQdMM9l2g1lbAf ft2A== 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:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=zLqXF7SYoovkgBMNm7MtzJSzeE0VgZYQlKefNmrl8Go=; b=kOvDZtqmMcc2tQN+yC1cg1XFZGWkobHOY+/ZFB5DJ1QV8jl01pHqAX85sbhfa8G4eY suDSNvXQlQqwnwznSWQnBag9eVsyNK7DIFlleFMeTG0l+14Hb78mqaG/HtN54sLgjE1h I6Bw3Mo49x2BQHKszjjG2JaBxE/WuJ8m9QdNzJtMakjOZ/Zz0RIjHDj7Q0ZEWxoZziei JX5yNFxAPT3v/4xxKEIaQ17x7eOVOWOIXIAl4+m2Nkw1xszpj2Eln5pBKhpEJ/XTY1uz /Xl3eEs8uaTCpLnkjD4zK2TUaFLkYkDKvlblnxGqSn7jSbEpd6CcovSW+I6JNyhBb8MB vuCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WavQSbx2; 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 l30si32335850plg.113.2019.01.27.22.45.28; Sun, 27 Jan 2019 22:45:43 -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=WavQSbx2; 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 S1726802AbfA1Got (ORCPT + 99 others); Mon, 28 Jan 2019 01:44:49 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:51395 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726694AbfA1Gos (ORCPT ); Mon, 28 Jan 2019 01:44:48 -0500 Received: by mail-wm1-f66.google.com with SMTP id b11so12697441wmj.1 for ; Sun, 27 Jan 2019 22:44:47 -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 :in-reply-to:references; bh=zLqXF7SYoovkgBMNm7MtzJSzeE0VgZYQlKefNmrl8Go=; b=WavQSbx2bNC7C5yXALjdMV9Q0Wx7HAjLbSy6inoEb7pl1O3r0nECunTHyUcMG7vuj3 VJd2jcU2RXYVDDZau8U17OeW7DYNzGcnOeP3UHJOaM/HETxWZOlBi8yJWjWduHhZD/FG 7djYzrGCgCp+9bAJdn/bi36YEKIXc+lSUrowQ= 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:in-reply-to:references; bh=zLqXF7SYoovkgBMNm7MtzJSzeE0VgZYQlKefNmrl8Go=; b=Fu8bA5aWJxRWzIievLIsxFQqNqTYM/uljZyr1/YleqvARjSD4RmBZOg595L5TnAqDA LQBQrzSd6/wlZVAEwhj9U3vdb5KQSpo1pck4tubJ8QakAjWjAC3OXtgJfoNDm0p4HSRp PyAeWTvBuJYbBY5krBp94I48ZcKQOTHZ7nhDNbIm/AMRYdGUq4wmmx25MT5HzzZ9uN8w QF5L63iRNdLSkykBcJqWRRh23KgLxVpSjuZsb+wU8YW5aZU/6yYs2XssuZvQxQZ/7sll LaZify8qrFM8fefR8Kq0sanU3pJvCLvsri9RRNdWrQt7i1yq877HE1wlWp3e859/MlTj po2Q== X-Gm-Message-State: AJcUukcanW9faECOjZwj0RfjCr0wSB2dCd3vatHJ2xFCvVA3K4cSh+z9 5TXMaqUFxIp/MMfczPmVUcICUopxpOw= X-Received: by 2002:a1c:7fca:: with SMTP id a193mr15814801wmd.36.1548657886741; Sun, 27 Jan 2019 22:44:46 -0800 (PST) Received: from localhost ([49.248.191.44]) by smtp.gmail.com with ESMTPSA id 127sm131120424wmm.45.2019.01.27.22.44.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 27 Jan 2019 22:44:46 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, viresh.kumar@linaro.org, edubezval@gmail.com, swboyd@chromium.org, dianders@chromium.org, mka@chromium.org, "Rafael J. Wysocki" , Taniya Das , linux-pm@vger.kernel.org Subject: [PATCH v4 3/9] cpufreq: qcom-hw: Register as a cpufreq cooling device Date: Mon, 28 Jan 2019 12:11:28 +0530 Message-Id: <65d7297bbf98fd525d3785f2e8eb5a412ffd3a6b.1548654899.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the CPUFREQ_AUTO_REGISTER_COOLING_DEV flag to allow the cpufreq core to auto-register the driver as a cooling device. Signed-off-by: Amit Kucheria Reviewed-by: Matthias Kaehlcke Tested-by: Matthias Kaehlcke Reviewed-by: Stephen Boyd --- drivers/cpufreq/qcom-cpufreq-hw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c index d83939a1b3d4..ed32849a3d40 100644 --- a/drivers/cpufreq/qcom-cpufreq-hw.c +++ b/drivers/cpufreq/qcom-cpufreq-hw.c @@ -231,7 +231,8 @@ static struct freq_attr *qcom_cpufreq_hw_attr[] = { static struct cpufreq_driver cpufreq_qcom_hw_driver = { .flags = CPUFREQ_STICKY | CPUFREQ_NEED_INITIAL_FREQ_CHECK | - CPUFREQ_HAVE_GOVERNOR_PER_POLICY, + CPUFREQ_HAVE_GOVERNOR_PER_POLICY | + CPUFREQ_AUTO_REGISTER_COOLING_DEV, .verify = cpufreq_generic_frequency_table_verify, .target_index = qcom_cpufreq_hw_target_index, .get = qcom_cpufreq_hw_get, -- 2.17.1