From patchwork Mon Jan 21 15:40:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 156213 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6515975jaa; Mon, 21 Jan 2019 07:44:00 -0800 (PST) X-Google-Smtp-Source: ALg8bN7R9mmTAzlLPd7WeypG58egnDgJHCsKWvshSvTou4WI5RnShe4E9mEu9phY7/xE5MvJ4htu X-Received: by 2002:a17:902:e002:: with SMTP id ca2mr31022365plb.103.1548085440299; Mon, 21 Jan 2019 07:44:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548085440; cv=none; d=google.com; s=arc-20160816; b=GdaG0HOe/O8JJgBhqfBOqpz438FEB9lZRR8ep+UG9518nxNM1gMJHgRJX8o//hMHdT +iSqcNLTVwNIRjN9kQlFN+JpGwmJhgY9qpkBhuUvG7sN+o91HBOzHYI+k4yfZM9wm234 P8rh7COkzTVf13q6+KOTFg9JUCecBDjuugRHslQIly4odbUY9X/DsMeCwzZc7IJRuWQl uTekJbSy4gBiWD4Y27w3BvFrIpedGmmk3tvqKeL3f/AVCwvICbMqgvUI/DWUI7tjI57O NgfG7GvgAmLBvG0XW8DU1rLRqy5OZqtDoMl6kGSCWeZhIC28IqpHokfqii15fjUiJ/t5 Rr+w== 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=ciNTHEu6PAYP7vXa6qAYGuJa3i/21ii4XE4OHEVyXAvb0p8cNBngHxzFg6/n0kSOMm jvkmTkw7Uml71RG6N+vJZitaqfRval88sfEDTpCnASFEI9apJmWOCwgo8CK5xCE1RHgC Baje0Ll1/cOLCPKQamF2u5LlKnSCjDRI/uhd6knNeupt6ZLE1ZApDAW8wKU1Ge5Cwpca Qa/XBchwtFz1xcvfGDUBuOozLzOdk925HDIlAdlYLnrv0eGtSIQIh0uKPl7+EWJ11Gub ZJoGZ2ekqLRcFbbrGHWNCYry1xXc/i5wklXSCt+ix3jywaNaLkYL7oW9nkEykCW69//z QioA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MSRTlrDV; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 n3si12654562pgk.405.2019.01.21.07.44.00; Mon, 21 Jan 2019 07:44:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=MSRTlrDV; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1729792AbfAUPn7 (ORCPT + 15 others); Mon, 21 Jan 2019 10:43:59 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:42737 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729534AbfAUPn7 (ORCPT ); Mon, 21 Jan 2019 10:43:59 -0500 Received: by mail-wr1-f65.google.com with SMTP id q18so23870701wrx.9 for ; Mon, 21 Jan 2019 07:43:58 -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=MSRTlrDVky4wuhprrrQEcgS4g/A7iauwDUwHh2yTA2fvbfncJR+0YY/bCyhOfDD81i 6p2yhk24s9j+HJy0rPQkvX64Ac3b6OQfUFJh17Tm5vC8fLjAzF7EbNmAgGVNYikIV3At Pu8omYSPt/6n+u5VdPnEwpyp1tJ82t5ApivNg= 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=eJQHBjxdIK7aiwxT0WfLqd9b6HMoG2Hh6dbAXyLEQH2JqtvONLVS5I/1AN33I5uh0x 4xrPvoQHlRsqQKGuD82KzZgxs62i+K+PCYFEpSgF0DUxNx1cWn/zaitKH5+V7YuVKI0g RBav3NtWVmteHkim9Z9W33zVDBNPjCV71xEhJzxsK10gbe03ej6OYovCzntXk+kbGZa1 2cwfrD69oLyrywQ2YIShYWBhehnt8pnK6HDn8wA2wasGq3Ph8Po+dyzMc++PaMK9uDS+ LaGWNH+47jdW8ZkvKtzUAA8F3GZbJF24S6Aocbplt3GsR+r2J67GXu2A5O05R6rYu5lR LE4Q== X-Gm-Message-State: AJcUukfW+bXYDmsLj8bNvSzpp8nMy2W01GrHhRtdYS7cc4sJVZsMUHMT ts3yQcVpKCxcH6Y5QUGv29hhdw== X-Received: by 2002:adf:d089:: with SMTP id y9mr29250380wrh.22.1548085437537; Mon, 21 Jan 2019 07:43:57 -0800 (PST) Received: from localhost ([49.248.61.1]) by smtp.gmail.com with ESMTPSA id j24sm116519156wrd.86.2019.01.21.07.43.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Jan 2019 07:43:57 -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 v2 3/9] cpufreq: qcom-hw: Register as a cpufreq cooling device Date: Mon, 21 Jan 2019 21:10:28 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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(-) -- 2.17.1 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,