Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3766939imu; Mon, 14 Jan 2019 08:40:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN6dLxzo86XIlFGvq06TIBUPHPQ14IX7xJ+n//tidOvp+qls4hvA6j4LTPY5lm/tUZFOMAdg X-Received: by 2002:a17:902:209:: with SMTP id 9mr26698868plc.288.1547484043815; Mon, 14 Jan 2019 08:40:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547484043; cv=none; d=google.com; s=arc-20160816; b=xQ2Jjw1sIuakNLonA8cLXn4y/94AZ2Ikx+e47S/zg721Lph/w1HIooS2iVxiICx2SD HSbplVM1fE7K+7WYkZgbK6+DOMyvhCf1BsZD5N+B8E7WlcXn7zm13pC87DNshIbYOKEy ZEWA47lfxl7d4w3oATYXv+Jq3f8Bat0/UxNOHRXznL/MDGbIBIYFb6XkCFLfRRGGx7xV 5rfu0ojik07r85+AYypraOEYYVQGpDKktGHrGr5jzeawArm0+7Fmcj78CHg1aim7Bosw zeLH76JeQtdUyDbFJPOA8Sb06WWhKWV3nmMrfAXhzx7Iwe89y7N3ZCvXXxAc5voWpteR OA+Q== 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=7AsIbPWyaNVpnciz+rQGAz2HaZ4096BUiIF8+8SbLYU=; b=o8G7a3RKQhW/AJdHGHNOH9JgtcpZR2Q8hpdxyj14NVWt1rFhU015pnwxDDaM/LjkWT JcCWgp6axEier/aroJU7g5fTPfbC2pv6I7ClRxohFOxsVnQ/tKGEaeng8V+ibh/Qr5Jg ZBLI/rbd465eRH7D8pmG41ficuf0lHEt21slgcwwzfcLvvJNSvVBtPhls+edMtaldmxV wKSuYovr0PK2n5hGglTm05z1pMMY/ZUQr/zkuVDQzl96DsbzdMxZrV5dTBF8VN22ybI0 x9bxsOPyvatvGWg0OHaWajwATvvti212G3gRdPuvkH7etlieQuC3DYLriqpR80LEsSZK Lfog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="g+/TUjSI"; 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 x13si717601pgx.266.2019.01.14.08.40.28; Mon, 14 Jan 2019 08:40: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="g+/TUjSI"; 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 S1726996AbfANQiC (ORCPT + 99 others); Mon, 14 Jan 2019 11:38:02 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54121 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726920AbfANQiB (ORCPT ); Mon, 14 Jan 2019 11:38:01 -0500 Received: by mail-wm1-f65.google.com with SMTP id d15so218200wmb.3 for ; Mon, 14 Jan 2019 08:38:00 -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=7AsIbPWyaNVpnciz+rQGAz2HaZ4096BUiIF8+8SbLYU=; b=g+/TUjSI97oiEjeIAmXF0JOOEHIisT++1kgUNslcEzl+MXsAQdUqxZKToZSh9xvLT+ iwBJdUjokPH/r7hq48KAtOiDzOwaPn5OaebqLJo/VGGED1wgBbNvOJDq3EaISIT5YGCZ mtgK3e6zdpjv0JzgJoAk//OZxJ+4rH7OVZ6Dw= 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=7AsIbPWyaNVpnciz+rQGAz2HaZ4096BUiIF8+8SbLYU=; b=WZyO9O16YU6EZ/+gA86Qi60arBtSzpqQq+D0ADbFnyxNAS0/25K06RlLjAa2Nw7EU1 bzz8n75XqT/58/DdYtbm/EviFbM+8UdrF6QB6m4aI3dVQF4EjYgLxqqP3Fznyqp4x0PL 7lAeafp4SZrz+/X92M5oK9VYkJ2QTx2idlIo4+LXDlYl0TBX/eT6act2NXiP0XdJe2bN d+eZGyoeRWdscHPHkQ+PNKCPfpSfa3GN/h5gtbDIFtZOtZMIW0LQuxTTFE6myQreSFLp Yo0XM2vyKQ/PfPJjFIW/WCse4tigQqfB+/XLwyKUx1EPx3Ch15+aV2rrBjATlYEeEPuW zdfg== X-Gm-Message-State: AJcUukdaK3AdWVC8LtXIikct9LQ3iFPZJuV1/0yNjxTVCk1KXu30wBEE BD+GeQsMTi3ovLQDm5xKItxDHbMrzJj4Hg== X-Received: by 2002:a7b:c397:: with SMTP id s23mr2889239wmj.127.1547483879688; Mon, 14 Jan 2019 08:37:59 -0800 (PST) Received: from localhost ([49.248.190.171]) by smtp.gmail.com with ESMTPSA id o82sm26171257wmo.29.2019.01.14.08.37.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 08:37:59 -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" , linux-pm@vger.kernel.org Subject: [PATCH v1 04/10] cpufreq: qcom-hw: Register as a cpufreq cooling device Date: Mon, 14 Jan 2019 22:04:56 +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 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