From patchwork Fri Jan 25 07:02:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 156541 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp17770jaa; Thu, 24 Jan 2019 23:02:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN6uj+1nmu7l/nGRp06d442K/9FGAS8sRRi5yKM3Wf9C0mAmaCgImQNzFuuB47yNcWM/c2HO X-Received: by 2002:a62:870e:: with SMTP id i14mr9993685pfe.41.1548399772953; Thu, 24 Jan 2019 23:02:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548399772; cv=none; d=google.com; s=arc-20160816; b=swk+UvMbbtBWT8JZOT1vgUCrKRHCHtxCYisDUuShrypXkX6yDoc+R+p7pX/pUy4aUy BwSn7M0sKhzzFMaCmLZtGC2k5RdGPToamJK4aNkuIj+GXhrdXPydXoKqSPDnlFrUsz2U G62BhgnzKtlKAqDu9n7OmUgst/kgTiLd+UVg3nNgfjhVUk5m4Q8vTYFCzf6bP5U6lw+c V/7hx7pfFxaiC2ghJ5H5JO6P6XQcwGUUzhRLVuh3UXBHjZEd5A+5Hjoj3+BtniwmkmaM cM3mMTTVTlTdlTBth2WVP0hHxn/7gn/0pQqb22wDpWVkirYX4mdLL2a8HRSjoiy8QtCX HjJg== 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=cyLosbw975pFE25Y2vfzwPuN8/wk+kN4j80s9bRHwe4=; b=E9Kqr7h2+GF+BwzZQdM8Yyh4d6DjCQetReRIPc7XrxE1+tqQPBzNcN+wbKW0U6am35 ueXIQf2uwgKZlJxJYYwuEyMkJSfhlw8qsWVIro3u33GzDuqL7/YxwoNQC/+VOlXnCleF 0AW8EEfV/OZ6UZQiAoxEB5dH2YPN++T2EDqViTuAy1VGvpNcn/fDziWkLi+KbS03yG2J RkcGwuJCoRWg+gx4hFDxqTyvhZwBQsLoT9F4DI+hJngp5kWScjwm57pa9M40SRav4uyr ukk3gNbjZUI54Ldznxo3OnVvJXEpSfErX4jog8O+tygujB0gXSIMPFfzzMNLWORQQ2TX y5/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YjkIfraW; 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 d69si9871614pga.184.2019.01.24.23.02.52; Thu, 24 Jan 2019 23:02:52 -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=YjkIfraW; 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 S1726954AbfAYHCv (ORCPT + 15 others); Fri, 25 Jan 2019 02:02:51 -0500 Received: from mail-ed1-f46.google.com ([209.85.208.46]:39435 "EHLO mail-ed1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726271AbfAYHCv (ORCPT ); Fri, 25 Jan 2019 02:02:51 -0500 Received: by mail-ed1-f46.google.com with SMTP id b14so6553937edt.6 for ; Thu, 24 Jan 2019 23:02:50 -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=cyLosbw975pFE25Y2vfzwPuN8/wk+kN4j80s9bRHwe4=; b=YjkIfraWX8lxLQ8cGi6MkrIdQxnCp/M421VYz7v5jtMHz4OSFLCQF2G8fcaOqM8Mi0 b8M7FlN0Hp8OLqSRWstF6FJIcMHF+BrfEhDjVfMTxE/KFhRATuaossCsCZztkLqSn5rl FSB3WWby34rQutSqSnKub+MKY9OFnWAZTUf0A= 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=cyLosbw975pFE25Y2vfzwPuN8/wk+kN4j80s9bRHwe4=; b=UUMD9Ab9ZdEnqH5VE9Ec2wYbSZFlFFtFqfA7PvgGyNWAQeJsxRuuXef9BKWm2It2DS /AomzsEZoPFEEqhYbnR/xv7y2EHAyxKh2PcMX/AG42uIZwIxe/Nugbit71QdOp1hnBMD axpd1qWEgim+CscRwn2zzGF+S99IKz3wh3z+R1hEB/WnaJDTZ1y8em+6mMy2ohdOdYwV wdo2LperFbv6tDj/b++Ko4hoewWOpyfNjqhBfhcct7N3AtuS9Dx0+O8c0m95ogNbQMcm yUHHBSfxG9zxBBM5e1fSmBD2D3hIPfVXCdUNrRCBslZ9l7R8VIebREBOjP+QCsmedLyI oMCg== X-Gm-Message-State: AJcUukd+gXUJGQb7NtxdV9mnddiKgQnvBg1ACszocr9yfQSvn52rzh4B WC8DoWRaHpLwzLmPO4vGt+u2lA== X-Received: by 2002:a50:bae3:: with SMTP id x90mr9829519ede.221.1548399769658; Thu, 24 Jan 2019 23:02:49 -0800 (PST) Received: from localhost ([49.248.181.51]) by smtp.gmail.com with ESMTPSA id x47sm11711410eda.91.2019.01.24.23.02.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Jan 2019 23:02:49 -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" , Daniel Lezcano , Matthias Brugger , Sudeep Holla , Zhang Rui , 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 SCALING FRAMEWORK) Subject: [PATCHv3 0/9] cpufreq: Add flag to auto-register as cooling device Date: Fri, 25 Jan 2019 12:32:20 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add a flag for 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 (but not a blocker for the series): - Look at how to detect that we're not in IKS mode in arm_big_little's .ready callback. Changes since v2: - Get rid of #ifdef'ery and let the pointer exist in all cases - Get rid of (!CPU_THERMAL || THERMAL) dependency in all cpufreq drivers' Kconfig Changes since v1: - Fix compilation failures with allmodconfig - Get rid of #ifdef in cpufreq.c - Removed miscellaneous patches and sent them separately - Merged patches 1 and 2 from v1 Amit Kucheria (9): thermal: cpu_cooling: Require thermal core to be compiled in cpufreq: Auto-register the driver as a thermal cooling device if asked 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/Kconfig | 3 --- drivers/cpufreq/Kconfig.arm | 5 ----- drivers/cpufreq/cpufreq-dt.c | 14 ++------------ drivers/cpufreq/cpufreq.c | 6 ++++++ drivers/cpufreq/imx6q-cpufreq.c | 24 ++---------------------- 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 ++------------ drivers/thermal/Kconfig | 1 + include/linux/cpufreq.h | 21 +++++++++++++++++++++ 12 files changed, 42 insertions(+), 92 deletions(-) -- 2.17.1