Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3763506imu; Mon, 14 Jan 2019 08:36:56 -0800 (PST) X-Google-Smtp-Source: ALg8bN4KcmdqwaYpxp8h+Qnl5KCdNUKJFOjDyHEFx/uSOspNOL0nBzaqaBqTSrFmTZa54ubvHZmv X-Received: by 2002:a62:3141:: with SMTP id x62mr25986837pfx.12.1547483816270; Mon, 14 Jan 2019 08:36:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547483816; cv=none; d=google.com; s=arc-20160816; b=Oa7rJ27Dgg5UwNKyRzuM3JhbsKY0i8Zo2NVXXfczFd/tssy3WQ08YbblKsX+Z5Z+Ig K68jjQ9ZnN1mjcmIvMk+Q9BMZ0okUHd2hSqpzA6EEjgu0CY2euz74jlmqMwEYzR2kcKr 3ShFKcYx4FP8FcFh26JKrdnmDG0TNEbqPw/4yY4c/2yuwax0Z1hQUWMcxmN1kFAs0zAy 59eWkWsqfu7f+fm4DW3kFf37T/q+KlYuSXpg8uulq71GUpGs7AjX5RbRm8DG6GJkmYsI 5HKN4gxcizbQebm/nfZaTGe63gbLaOcOHU5CS+7etYKfOitTUDZWQ/SbVnAGZByl0w0X dl7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=fpr0EFghkVyQH0EiyG1VDE5LspytkbV2ayoT+IrLjlk=; b=jqB42uvluHGcemdRbyi/IC7XM3mGGvWCAMoKU6HchdGtVfHKJoahlF9xkFqJKnNqrk Bh7uBQjel9h9UT71fyVZcUnaklGE83y3lhv31PmE1NHUo22e2sG1/lkuW/sThtdGDF/R XEErlSHUBvrSWXnA1pbqxPVCkaxWA9xhnEgSDVrhW/JeWoVMdNy34oXW3vkxs/+athIE 8Hsww7FVzoCF9FxSCH2m1JhbP93BZ80pIRy0opT9PUR+0dsiyxZJ1/1uJbWWxn7qB/xD ZBaTeyiUJKU5bIxfbFnAdNUxCscq3ikZXfoNewcO14cRupbV+a2xj8xwMnPkTN/bA1sL 6AVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Xt/1jw4w"; 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 e93si740766plk.56.2019.01.14.08.36.38; Mon, 14 Jan 2019 08:36:56 -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="Xt/1jw4w"; 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 S1726742AbfANQfZ (ORCPT + 99 others); Mon, 14 Jan 2019 11:35:25 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:41750 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726679AbfANQfY (ORCPT ); Mon, 14 Jan 2019 11:35:24 -0500 Received: by mail-wr1-f67.google.com with SMTP id x10so23600762wrs.8 for ; Mon, 14 Jan 2019 08:35:22 -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; bh=fpr0EFghkVyQH0EiyG1VDE5LspytkbV2ayoT+IrLjlk=; b=Xt/1jw4waa3lxjlieWv0tTk3gDceBhD3HUc7luQtVdqZVtK0ir4846YNAijauV6u+F wH3v0lRb/1OC+duPFMPoVhmthEhaqmlHb6Tm57SIAEX0kyeb4SDmrGHFQe5BGeyxZ+1J s8yn8lxne1kmnT2AUdV+GDk0CxDaUKMnuyYCE= 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; bh=fpr0EFghkVyQH0EiyG1VDE5LspytkbV2ayoT+IrLjlk=; b=blMS/8QDr2a86o0MEhk53NxwD8k6bwO+UTd/BIR1Huz06rhmYkwyEBGW401DOOuXq2 /PJu2KqpKwVen0UDsWlkWHUHkrwL+qggnv/kIf/3Vi8g+dRgLK0/8tvzqyd2vQ23VkJb EFMfqWMM3oE+8jRvUapxY/08/74kYy5Zde8qksICzodhfII3GPY+h07+SUKmwMHJgAVZ iZpzYN/HHlrkW5+LjIbuO7V0I89JAagpFNzwLF5O8XYDe8Y6bpEihTx1pBZCPIiFwl9t NZ+xzcndgZPJmhj8uP6FA2c9HK43dPOBmSvUs/wWI4yq2WpMY8yqFnEp4xOB0DgTAbka bhIg== X-Gm-Message-State: AJcUukcabUs9yvmFARjZhtEAI5whqTxglmolWuFkY9+CUMRvy2HJSZ3t k2zAFupftO9HkhxXZT5OycYqtu7k515MSg== X-Received: by 2002:adf:e54a:: with SMTP id z10mr24266430wrm.238.1547483721699; Mon, 14 Jan 2019 08:35:21 -0800 (PST) Received: from localhost ([49.248.190.171]) by smtp.gmail.com with ESMTPSA id h17sm70337170wrt.59.2019.01.14.08.35.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 08:35:20 -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" , Matthias Brugger , Sudeep Holla , linux-arm-kernel@lists.infradead.org (moderated list:ARM/Mediatek SoC support), linux-mediatek@lists.infradead.org (moderated list:ARM/Mediatek SoC support), linux-pm@vger.kernel.org (open list:CPU FREQUENCY DRIVERS) Subject: [PATCH v1 00/10] cpufreq: Add flag to auto-register as cooling device Date: Mon, 14 Jan 2019 22:04:52 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a flag to be used by cpufreq drivers to tell cpufreq core to auto-register themselves as a thermal cooling device. There series converts over all the drivers except arm_big_little.c. Tested on SDM845 with the qcom-cpufreq-hw driver. Only compile-tested the others. Things needing fixing: - Look at how to detect that we're not in IKS mode in arm_big_little's .ready callback. - The other pending issue is to fix allmodconfig that leaves us with CPU_FREQ=y and THERMAL=m (CPU_THERMAL=y). That leads to undefined references for functions defined in cpu_cooling.c Amit Kucheria (10): cpufreq: Add thermal_cooling_device pointer to struct cpufreq_policy cpufreq: Add a flag to auto-register a cooling device cpufreq: Replace open-coded << with BIT() cpufreq: qcom-hw: Register as a cpufreq cooling device cpufreq: imx6q: Use auto-registration of thermal cooling device cpufreq: cpufreq-dt: Use auto-registration of thermal cooling device cpufreq: mediatek: Use auto-registration of thermal cooling device cpufreq: qoriq: Use auto-registration of thermal cooling device cpufreq: scmi: Use auto-registration of thermal cooling device cpufreq: scpi: Use auto-registration of thermal cooling device drivers/cpufreq/cpufreq-dt.c | 14 ++---------- drivers/cpufreq/cpufreq.c | 17 ++++++++++++++ drivers/cpufreq/imx6q-cpufreq.c | 18 ++------------- drivers/cpufreq/mediatek-cpufreq.c | 14 ++---------- drivers/cpufreq/qcom-cpufreq-hw.c | 3 ++- drivers/cpufreq/qoriq-cpufreq.c | 15 ++----------- drivers/cpufreq/scmi-cpufreq.c | 14 ++---------- drivers/cpufreq/scpi-cpufreq.c | 14 ++---------- include/linux/cpufreq.h | 36 ++++++++++++++++++++---------- 9 files changed, 55 insertions(+), 90 deletions(-) -- 2.17.1