Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp140252imu; Thu, 24 Jan 2019 23:03:59 -0800 (PST) X-Google-Smtp-Source: ALg8bN72QjGpAZBuDQT5Yv/OkSqTutrozCDoriaNvgqEtjiAj4wykWvWgRp5e/KwuCzK2vv5ktFN X-Received: by 2002:a17:902:f81:: with SMTP id 1mr9459681plz.174.1548399839470; Thu, 24 Jan 2019 23:03:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548399839; cv=none; d=google.com; s=arc-20160816; b=oNPtdCWNxeLGs+uY0DVUh3IwvXmSx3U7ENH12IXnph/8NNH/H0tnrTKsKgvJ0V9d+D wCiqxBLNbsATLWmKF7DdwiR7raAShiIElgFC58ucP/7TneHLiumX566saN5QtAnjL40I kK9ed7Vlk1iUM/xbNP451Iv/KtiWvv9pvKCkiCyB1t7lRB/pQtuRmwLCZ0cDxr6DlxtF PqXOGccVdUU47MJR/yogQl0fMh8gbn5azSGDxVvCW32a1XDAkv9JPmfs+/h4UU8HZW5c cpskDwIJWz/uaIO3yeHiveGvLoEqfSWdItoRqk+CItzpaZSH7j+W9zQTyXNj0tHRZFm/ JHfQ== 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=RcPmA2nbjPvNHgTnnD9Kf1WEY5geIm84fNCY67Ym2d7JlHL5jhr79U9qbtyEBxjrJy oNcDl5dCpC5oII0U4fUbgbc+/VwV1QSFerQacNvR5U82crtW2vMHcr4Bwva+uyM3X6qb ZHWsrkfWb8xcuOdAaLRwxS0tGUTAWC1BKCy/a4yB4Fh3dxH1+VOQRQNzf9hqSeIw7d2V ZFh+KNyl8p0saXn6K8+UQyLjavfeKDEBVZjcPJR7E3YlCNR003E/J0XE1M3623kfW6nW gaGRDZISHz2cTNFBzzMd2LCoEPwCUySo/rRupLwZ0iMBewE7RfOpRjMD29CTfW7ZsB6x r+Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EwLhTb+1; 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 k35si23118835pgm.225.2019.01.24.23.03.33; Thu, 24 Jan 2019 23:03:59 -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=EwLhTb+1; 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 S1728249AbfAYHDM (ORCPT + 99 others); Fri, 25 Jan 2019 02:03:12 -0500 Received: from mail-yw1-f65.google.com ([209.85.161.65]:45240 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728174AbfAYHDK (ORCPT ); Fri, 25 Jan 2019 02:03:10 -0500 Received: by mail-yw1-f65.google.com with SMTP id d190so3500426ywd.12 for ; Thu, 24 Jan 2019 23:03:10 -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=EwLhTb+1nwC8TLvJKx01JbTutq1255mupbqFFVXEEgh1OnGkfiBmHs6hz107JGe/P2 x6PnUPmI7FFNWIC7oQ8STOnRyd82VZiyDGq40BYlDzxM6UvP568DlE0NyuAJEnpRYOxN /MmudNV7UWET34KAU8JQ6M+t28sGKGm0Nrl6k= 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=RNXlDYELdDKpZ6eI3E1SEm7AJfnWq+RIvOEOz8s4lnZwYjAIe3ZJiYAtX59a89tJ0W SR4pTSqboqfvQFdWiuFCFpDBIROuxtIZCVrlTVaiLSkHe2PjEpRjW5Jz0gxl9Q0rBdCE UR24a92xUHzcSf1eelZDLXhQ4Ukz3/EDt/2XSaa8yEa1rkz7d2v96br/cwjnBGaz2RbE OEHWWQzYg5sm2/7hZktU+NOnL9Fba66yaVvLeQ4Js0VIldmhtbkq1IcyEEPr/h6OwGka sDwB5v42IYzooA59FmoSbsYl1a+1e9kwc5hRuAWBNZdFXTAhAVD+zsdV62qOIetjGIaP J+QQ== X-Gm-Message-State: AJcUukf4sP8ERsD6od8SpxulY7NaNMjC+nJ0IrnA/05H6SJCBuJ4cZKZ JJ4Q7lHtYfpz/Qk/2aQmZuA6tYoX1kM= X-Received: by 2002:a81:4511:: with SMTP id s17mr9655402ywa.430.1548399789522; Thu, 24 Jan 2019 23:03:09 -0800 (PST) Received: from localhost ([49.248.181.51]) by smtp.gmail.com with ESMTPSA id i2sm12390826ywc.59.2019.01.24.23.03.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Jan 2019 23:03:09 -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 (open list:CPU FREQUENCY SCALING FRAMEWORK) Subject: [PATCHv3 3/9] cpufreq: qcom-hw: Register as a cpufreq cooling device Date: Fri, 25 Jan 2019 12:32:23 +0530 Message-Id: <03a5f33f0667b58eca3c65a7ce1c25a4e5cd00df.1548398851.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