From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 59102CA0EED for ; Fri, 29 Aug 2025 06:26:32 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4cCpFM0VP4z2xcD; Fri, 29 Aug 2025 16:26:31 +1000 (AEST) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2607:f8b0:4864:20::102f" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1756448791; cv=none; b=bF45iutK5OauVdT7mclHHn9NRgm+AZlksG4nL/DWucTdDgfsFQkwDDPZxz0yorky+PvjEzcKRDUS5OQaXuSSon8S228+4i+uoGlQXjY1qbIUL9fqwWw9SGkbR4+h2R2N/GzfcKt0G8ENWPFjCTYLWkE12Rgwld0ThgaTlsIoqFUhz2QrVgL/qUcq8ul9lW5ix+hSz7s5v29N5ykLRO06rK/lJhLtVaTCh+njIHMLVGlQW2pAxnlmrxSNzlwcRZnf9n8CsJMDot0wsjfQ+p6mZqNNbB5AUVdTehYtu5gRP4YCO80dBYc6JupHpkhMW3rr9cQ624DfzolWyuoax+tp6g== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1756448791; c=relaxed/relaxed; bh=FcWNphyv+aV6VigruYXsycpBhyL4rRdrU3NDODM9P5A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NgdfDAjp/XhVxIoQlt/LiC8XvqscW9BDlO9/XXzEnAjmLGcRB/UzTRLbGvmLF0fumKDEugwlE7sRmn/KWMTCtF00NXW2Hrb+5GFL1+RQAQlke+Y2dFOZpCAuzHJ1FVmWPXzaphi+oDCuQ0L1hMDKYaQ+hQmXcLqFmkS+p8OOLwiXpQi96EaprJY1MNOcdFJ09aF0m1xOrv1ufJoYBg+9ySTGICvQ5sf4xbl9meiwqFuy4++UV4PQz7EYdObIL5k4eyKnWRnDf/D5qNuUcfZB2O0lJymnOKpB9+iLEylxahQAikZqAnV4uJ1hUuJ2HekdUpkc1DgP7DLnvM1JPG2AaQ== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=n7LAbYsI; dkim-atps=neutral; spf=pass (client-ip=2607:f8b0:4864:20::102f; helo=mail-pj1-x102f.google.com; envelope-from=viresh.kumar@linaro.org; receiver=lists.ozlabs.org) smtp.mailfrom=linaro.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=n7LAbYsI; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linaro.org (client-ip=2607:f8b0:4864:20::102f; helo=mail-pj1-x102f.google.com; envelope-from=viresh.kumar@linaro.org; receiver=lists.ozlabs.org) Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4cCpFL1rTlz2xWQ for ; Fri, 29 Aug 2025 16:26:29 +1000 (AEST) Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-327b3e24637so986455a91.3 for ; Thu, 28 Aug 2025 23:26:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1756448787; x=1757053587; darn=lists.ozlabs.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=FcWNphyv+aV6VigruYXsycpBhyL4rRdrU3NDODM9P5A=; b=n7LAbYsIz6QgTDGn38hQg/1IyiSzN25VkkFOGhvasiVcAelTCiq1JzDV/TQSoq9GtL avJoupYLkT+/FUY7fAp5qmRwTet4OG/Bc7s1jeDMWD9l9NWXcm2isHZssYEWZFjRXprT duKuHxhfMyc6wy1JTTpa6DM1sAweJSVOcm3FWVTIHDuUDu529OYYhkk7KnBy+g37mfs3 jiwNesRfPwZqNM9/nAScNUxPVcg5RNRVtkB96mNiz+2Yg2yCGq84kAUzfpqkEvUk46J9 BA/boEeD9xzm7LY1reFx9tmVihzDPaXmzwpvo0cDnu0cKYNMPV651o/wHMv0mPrpVhP4 Xu9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756448787; x=1757053587; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FcWNphyv+aV6VigruYXsycpBhyL4rRdrU3NDODM9P5A=; b=oBbfXW/FFtN+FGUjD8UWMhQZl/XKG7MVm0NPAhb91KwPHdWOST3tHUBDTCYfcvBFJQ +iO3kB3+qsRHcWcVax3K2xHpDWNd4X2Pt7xTjJiyoRsrS1KOLahPzoJ9A7mMeg1CErP6 1XCcYyzFy97IsV8BpNwiCB66ZeGcqwOwH3wiD//9O55cLsprLvuXmgf88quP5wc465up Tg6oep2yMgvi2hw7AdbpsdfD0HYT5ZOXVKj8hhBh1VTBGoa+GNYK4ZOzFG6TYalFL48s jYrzhdR5M3NCFbffupt+F4pb+0ftVvHz5ZkQMYFuxvcTZrEbWhy+xiyy4xtTEsSP+uRO lzWw== X-Forwarded-Encrypted: i=1; AJvYcCWZpf1sZbyD+iBr1YsxjVxnxidqiIkYkGxvyZU/CzRYYZQB3AuDDI4xNB7auu5NlwLQIEsKGHBEksxlu1k=@lists.ozlabs.org X-Gm-Message-State: AOJu0YysxA4QRNyH8ChO79dJfHmfMnqh5LYxjoLiApDCRuFnLNGpAG+W xG/2KEViOkCY63aViZz/oIjsSyUWgp+ALE/xXXuTFkmS1iN44a9THyhQ0BIRn6LpzRQ= X-Gm-Gg: ASbGncuZqwnEuTSQALaBwrssvJgde+N3qDRLDsaTDtqtGLC3i2Ei8UmQ56l2rlJF2RH BlPCJ0CIVot1spL3Sfffr7KA2qNQUVvOFa7LNhUZHGHKZaRpKKqDUTAA6T1fNhd8OPD3PNNKjv8 wnliBKyPYTrIyuS98FPf7gKFS0mnakXzaHfvmndmi+2CT9oQmyf3wF/+HD7GoCu6fQ2v0m6TSBs Bq2FjK7Yf1WgOyIAY7WgjKBv4MawQO400pHDIWpUM3acTSJBwtsro/R6VACuDaFGpX9IzxcO5bq a6bAchVluHSmQ7f7IN73NOHWZUBlNjit4Y9p5EYfaSF70RFtgupFZzEn37aM2DOsdU0/Jhdi9vy sznEF+9QjEHceEg1bIuLy67Dq X-Google-Smtp-Source: AGHT+IFHYb22k9tJefksk8Ol8WzLcbkUpFNWBPL7w5JQ2Y92t38N6cXrTs0utCYM4huh3xQWCdkxbA== X-Received: by 2002:a17:90b:57ce:b0:31f:210e:e34a with SMTP id 98e67ed59e1d1-32515eacfddmr32147827a91.8.1756448787009; Thu, 28 Aug 2025 23:26:27 -0700 (PDT) Received: from localhost ([122.172.87.165]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3276fcd4bd6sm6984417a91.15.2025.08.28.23.26.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Aug 2025 23:26:26 -0700 (PDT) Date: Fri, 29 Aug 2025 11:56:24 +0530 From: Viresh Kumar To: Zihuan Zhang Cc: "Rafael J . wysocki" , Catalin Marinas , Will Deacon , Sean Christopherson , Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , Markus Mayer , Florian Fainelli , Srinivas Pandruvada , Madhavan Srinivasan , Michael Ellerman , Krzysztof Kozlowski , Alim Akhtar , Thierry Reding , Jonathan Hunter , MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Simona Vetter , Daniel Lezcano , Sascha Hauer , Shawn Guo , Eduardo Valentin , Keerthy , Matthias Brugger , AngeloGioacchino Del Regno , zhenglifeng , "H . Peter Anvin" , Zhang Rui , Len Brown , Nicholas Piggin , Christophe Leroy , Lukasz Luba , Pengutronix Kernel Team , Beata Michalska , Fabio Estevam , Pavel Machek , Sumit Gupta , Prasanna Kumar T S M , Sudeep Holla , Yicong Yang , linux-pm@vger.kernel.org, x86@kernel.org, kvm@vger.kernel.org, linux-acpi@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, imx@lists.linux.dev, linux-omap@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 04/18] cpufreq: brcmstb-avs-cpufreq: Use __free(put_cpufreq_policy) for policy reference Message-ID: <20250829062624.jalqqsigs7hanf7i@vireshk-i7> References: <20250827023202.10310-1-zhangzihuan@kylinos.cn> <20250827023202.10310-5-zhangzihuan@kylinos.cn> <20250829055944.ragfnh62q2cuew3e@vireshk-i7> <4bd55a08-62bb-46c4-bfb6-a3375ce37e79@kylinos.cn> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4bd55a08-62bb-46c4-bfb6-a3375ce37e79@kylinos.cn> On 29-08-25, 14:16, Zihuan Zhang wrote: > Thanks for applying the patch! > > I’ve been thinking further — instead of using __free directly, maybe we > could introduce a small macro wrapper around it to make the release scope > more controllable and consistent. > > Link: > https://lore.kernel.org/all/6174bcc8-30f5-479b-bac6-f42eb1232b4d@kylinos.cn/ > > Do you think this would be a better approach, or should we just stick with > the current use of __free? Lets keep it simple for now and use __free directly. And keep this similar with other parts of the kernel. -- viresh