Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp689790iog; Mon, 13 Jun 2022 10:42:48 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t2/F56vK84X8goZsZFe8GFLXxlCaA04bfUWhI2XsW8dNF7Gdjo3P6p5gbkO7duDGnKlNJa X-Received: by 2002:a17:903:1105:b0:168:9cac:a0a5 with SMTP id n5-20020a170903110500b001689caca0a5mr156265plh.59.1655142167930; Mon, 13 Jun 2022 10:42:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655142167; cv=none; d=google.com; s=arc-20160816; b=XO5QTwJjLvR+A7H4StCeLRVy+Dl0YEaCbScDRmQJLLdSTHwMPuGJgD7u9YGUUwv7Vx d2itXPp9nrEIE2jY7l0DtUz1i98LuZfALZxM6a52v+4Xoyr27p+nnT4vdGcyFcWpLhXj Gp5x38mfbcZyeMI1F66uL3j5GlpycaV5Y0Aohv59RWjFpyfmf6AayFGt2D4RjwlBVNnG IeeEzXCc8NhIJMLQDyFcUtFXoTArWsH3cUgmj6MgaCTC/981yxFvmaLWdXrPCCcUuCyq sZUZsUsHpusfUsGyLoHo+xOtIcf6m3Ia6YaFB9mskgoDMr0e3ENJSHGw6dQIPM+qEKfj VDrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=GAyWt+IMCwnuCrWf1IgpWeUM3gLje223D91KUlZpvdg=; b=NSeXAnK2A+Y6oyUSrl8KDXOzTiNJNngK5eQqZzQANGgD65yLTO+KYQQ6VUyvsOiW0U n0Oc/w4NlYLILXWrZJHiZGfthw/YqsKjfVfjxxyfxUMVJvG7eV3NdzJyzdPHvPPCSpTA v5abiXUWQtMWFkWCL3qJgUwdAcd/ak12Urs983QLzyhkuBhzzGJ9/KlaUZuxyMnfVahF FJB29pCV8DZG4RZOpK927stH5d1N8usCzGzmCTe/liHZ5c2XPERY13ahTWEZf0yIgOgp deY2mwA8RinJpg/rbXtfYdAJ5Iu6KZZH+t8ZOm0WBhmfl4y3GWZV/Z+dDVa0mXiA+OYh VOMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a24-20020a631a58000000b0040504f9e815si10697991pgm.81.2022.06.13.10.42.31; Mon, 13 Jun 2022 10:42:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241269AbiFMRZU (ORCPT + 99 others); Mon, 13 Jun 2022 13:25:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240154AbiFMRZH (ORCPT ); Mon, 13 Jun 2022 13:25:07 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4CE33128C3C; Mon, 13 Jun 2022 05:43:39 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E778ED6E; Mon, 13 Jun 2022 05:43:38 -0700 (PDT) Received: from e123648.arm.com (unknown [10.57.35.216]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id C2A853F73B; Mon, 13 Jun 2022 05:43:36 -0700 (PDT) From: Lukasz Luba To: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Cc: daniel.lezcano@linaro.org, amitk@kernel.org, rui.zhang@intel.com, lukasz.luba@arm.com, viresh.kumar@linaro.org, rafael@kernel.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, mingo@redhat.com Subject: [PATCH v2 0/4] Thermal cpufreq & devfreq cooling minor clean-ups Date: Mon, 13 Jun 2022 13:43:23 +0100 Message-Id: <20220613124327.30766-1-lukasz.luba@arm.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This is v2 of some minor clean-ups for the thermal cpufreq and devfreq cooling code. Changes: v2: - extened the cpufreq_cooling_device with private ops field, to not waste memory and simplify allocation/free code (Viresh) - added devfreq_cooling clean-up to align with cpufreq cooling code - added ACKs from Viresh for patch 2/4 and path 3/4 - added missing maintainers of tracing to CC list Regards, Lukasz Lukasz Luba (4): thermal: cpufreq_cooling: Use private callback ops for each cooling device thermal: cpufreq_cooling : Refactor thermal_power_cpu_get_power tracing thermal: cpufreq_cooling: Update outdated comments thermal: devfreq_cooling: Extend the devfreq_cooling_device with ops drivers/thermal/cpufreq_cooling.c | 77 ++++++++++--------------------- drivers/thermal/devfreq_cooling.c | 27 ++++------- include/trace/events/thermal.h | 28 ++++------- 3 files changed, 42 insertions(+), 90 deletions(-) -- 2.17.1