Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3406275imu; Mon, 14 Jan 2019 02:23:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN7xidPHOWGJFo0f8mJ/6tMuKYnecJGzMD7ykUBvJZ2LEOJkLGKzebFYipu/SEpsz1TGM5Ic X-Received: by 2002:a65:4381:: with SMTP id m1mr21797054pgp.358.1547461423245; Mon, 14 Jan 2019 02:23:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547461423; cv=none; d=google.com; s=arc-20160816; b=UyBMoYdYi8b0FXjbyuiMUhkXyYD6D2k1ts3vbhXEvn8ERg/WplYN6gNx68L7myuUt1 biQdH/RPJ//3mGjzbHMAkcRxy3itV/plFesbVTqYEiTUPaxZzZGMFRgf07kwBpT+fdDI 2UN7qLimrFR61sJJnydT5tVEIFrQVH8cx1kI5PBeDGMSGvShNgLdeX3DfsKL4EuNg0XK +MmF5UPCFEe9mhqaKKHjZntTF6m35nceQjamnTLUyX6+aw80043GQ4NYzV8yT3NKhYR1 o+HBka+poFobQvtWBzIpVNRRcqEA0EWb9HcEI0hoDuJx/tT+YD0vvop/imjcfurRbWKx MfIA== 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=cNYNQ5KauWNer74TDBHyi3aVg7qesm9a6f/suNN7BOE=; b=L6L9Xa2h8yl95qktwNYWK2etmuY+EV5pajekmAW0CVDVBwl9m6hmIUK8ZjwixPWMmP iE+KErflpFpdCTSl8Wd1PHFU17irmFOGN9peg+3Cjz45gN3M28dF0MLEbwhNe3PRYKfs GgeMowdcgByJPb9tXaat16d88id+6Ex2f9mthQAipgtsTjTV9OEx3AksKGUtqhnelBQc OGMTPe6R+0aLf16IYijDsQgf2NiJh3Lq/xt85Tnbw1zivCQ9ciRLlh2MratJc+F7AHKm XAV8aPVxtkFazBlBxJV0iwesyg29OCPIySidBadxziwrxNIVvIfV8i8TpXbJPUOfgmC1 qKAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jmgzWA3D; 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 z63si20624pfz.132.2019.01.14.02.23.28; Mon, 14 Jan 2019 02:23: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=jmgzWA3D; 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 S1726830AbfANKV6 (ORCPT + 99 others); Mon, 14 Jan 2019 05:21:58 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:40961 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726595AbfANKV4 (ORCPT ); Mon, 14 Jan 2019 05:21:56 -0500 Received: by mail-wr1-f68.google.com with SMTP id x10so22112125wrs.8 for ; Mon, 14 Jan 2019 02:21:55 -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=cNYNQ5KauWNer74TDBHyi3aVg7qesm9a6f/suNN7BOE=; b=jmgzWA3DtEZ+pp9ewQZONx3Svz0g4mDEuJnlXIKx1f05yBEZeouIq0rjNWQS/7qvCV ErmFWPp/V40JeP3IvUQIiYvuCzpgj1jmU5olayPUhLnyeYsXCfYmdQvEJx6asF7tzlLH FFyQKblrYrHS5q4KrQQ80EFEA0pDUo9DJxUdE= 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=cNYNQ5KauWNer74TDBHyi3aVg7qesm9a6f/suNN7BOE=; b=gbCiBIPQyS3aazfXgj+Lv1cPWCfLSZ1QIN6WM7f/yMnilEQ9KAVnH2LS8OhiB3zGXZ EiWWIm4NuN1k0xmB0XDaJjXWkxoBkib7cg/eNKqtOcgpmZbIVaFDujDQj2k3tMEktdlC PBSi6aZbDfmsdCQ70T6cJo3ZY/FfYVZng78AENkGBaOhTqs6hg8hWGeL13d3DHCgT8d0 nuDGhCK5MgPdaDRWVajn3ZIAHImnT2Y8rc9dB3Op1e7H9vXdfhTNyJEwBdVox64uWbXN EGsRdwJAlBwtiTS4Tu2kcQzuJY1B+0pYqlu/NNzddKmDCz/ZRxt/njcbc8VEl0ClGQ4j dtUg== X-Gm-Message-State: AJcUukdMK8LTMmBA00qWmg1ibmRp5j22TsuV3eiMFmiDU0o/7/nX9hmi 9zVGmJIN9rjjHwNXFmOitQT2D2AqsfE= X-Received: by 2002:adf:8421:: with SMTP id 30mr24392096wrf.153.1547461314750; Mon, 14 Jan 2019 02:21:54 -0800 (PST) Received: from localhost ([49.248.81.155]) by smtp.gmail.com with ESMTPSA id y185sm17801534wmg.34.2019.01.14.02.21.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 02:21:54 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, viresh.kumar@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, tdas@codeaurora.org, swboyd@chromium.org, dianders@chromium.org, mka@chromium.org, "Rafael J. Wysocki" , linux-pm@vger.kernel.org (open list:CPU FREQUENCY DRIVERS) Subject: [PATCH v2 6/9] cpufreq: qcom-hw: Register as a cpufreq cooling device Date: Mon, 14 Jan 2019 15:51:08 +0530 Message-Id: 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 --- 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 649dddd72749..47c7cea22da1 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