From patchwork Fri Jan 25 07:02:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 156544 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp18097jaa; Thu, 24 Jan 2019 23:03:12 -0800 (PST) X-Google-Smtp-Source: ALg8bN5jer1eCd91O7VaWZ+16pxsWay/ym44sxs2M24HGo8vJEJ0l/tZOGxuBz8bmUytf2fLmWL4 X-Received: by 2002:a17:902:209:: with SMTP id 9mr9939031plc.288.1548399791944; Thu, 24 Jan 2019 23:03:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548399791; cv=none; d=google.com; s=arc-20160816; b=M9bQPqVzI8Hy1IrW+HKx5Esgng7g5AWRqJHF6Nidkb2R+l7dQxZN4Xy0kJkTBhsOig uDNyR0AfZtsscjvP+86nYC174pH3Le85QCJo0vezRw7hKMMENl8ivHw7ERh91qzacB7N 4qYzsqeyDQ243eoAYVOE2xFjMh5RJDak0ryWvOiUliECv88FdRmK3H10gOcTzBpQSx6y dcysp9+tcLF6n+tpN1hpT4/+QRzHUNtG9hcRT3b84MY1pusEXRZEbJyVinSTvLf+NL3t /YSJfUOMReqwl02SBM4hB2TGvk2sjcVmBRv27c4zPx4vFCzh76G4YS6mZa0nqiYktRVq RJyQ== 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=vpbFgMnRN0JP5LbconJK6a7/f+cj7Pe5JaA7uIkldzVnU07K/kaQ+aUvFyRUJwObZv Elaen5MuLegOXx+Uxh8nqmg4fpyLq6pPMzjciYmIpXVt2+zwMdVJHiKwFsCgPY4hQiOx MaDE8bstTiw8eBb6hcpTA1Qq56C8h4+/ipCK2cI7RRSl5of/LDx6vvsAuYtNidlamZjN E1I7vxr40YC440dcT8SLKkXcHdsXyO21BiSKoteROvjeUTBgl8TTdOSEvRHePvihBzFI P6WFm+2iFlG2eaktLJsuiKo5OZ6Z4thj+ZoSwrKMUGIN2jrmpFMAhgSMO69E+XmtGMe1 revw== 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-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 y7si21681719pga.296.2019.01.24.23.03.11; Thu, 24 Jan 2019 23:03:11 -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=EwLhTb+1; 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 S1728191AbfAYHDL (ORCPT + 15 others); Fri, 25 Jan 2019 02:03:11 -0500 Received: from mail-yw1-f65.google.com ([209.85.161.65]:34507 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728143AbfAYHDK (ORCPT ); Fri, 25 Jan 2019 02:03:10 -0500 Received: by mail-yw1-f65.google.com with SMTP id g75so3536307ywb.1 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=BxP8YLV8V5buTQ5LDypb+j4vCoLA8srPOUd/pymLZU1K0lSi6AItUpbnoTUdiVLINS IVHgune8cZAM4B0IveV/1YyNs1yJF6qmvu5QNXe/uuwuccvJPbFyKwY/yORaWRiA+UAw f7cYgSobO2ah6yoYTdIztyAqn8V2q91oaTKi4lDmGMBumySwCg6IAojIFhjSKcI7/ZbS 2E4icwptZWxUq1H3Yj8Om04lZsCHuZFFv+bE+Us2X6AGYhnJEnbu2MLcYkl1VwDsqNgL nvZhR7duFP2MnKv0/v4DCpMw5L77KFqBUBMWadFaViPbicfLP2Ew8D8GCKIcoMNVvmHh fLUQ== X-Gm-Message-State: AJcUukdAt6j5raaxo3f05tGgQcpMMIjL22OXfuHywIeeuoPEuDP8wN3P pL1FoOBg0Be8p+zIO+pZ2F/KFg== 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-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,