Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp252397rdb; Thu, 22 Feb 2024 02:35:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWTtdv8Pt3ILKqMv1wpWt/dlZDVSElggWiVmZqze20krUIEveiZ1eqy0j0gSLepLroqX3ZxKKOgyS/3z02Lo0MmVj7lmCbda0xMqEg9zQ== X-Google-Smtp-Source: AGHT+IGuzbu7beQg8gKnjbKSbMBwruQi1D+R1vW+k4Nucx5B7WkxKR5AQVmSk+e7ACJvkv/VMQCc X-Received: by 2002:aa7:d595:0:b0:564:405c:dfa with SMTP id r21-20020aa7d595000000b00564405c0dfamr10081789edq.17.1708598113345; Thu, 22 Feb 2024 02:35:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708598113; cv=pass; d=google.com; s=arc-20160816; b=ZdEGg1EVlkd38eO0bURqrBtK+k7MCiPONiB2hVbl12jSyXQA1nYP5g47oYDjLFdgDD Pm38+NiF7FfwZ5xG05U8NnVn+Taxnlhh6dGaI5+61rJ2+xGxzsuPuAGTU+/8y13Nx4qZ euXWSNgob0KVTAQ30WSSHC7iELu+pkvgiFSzZpAq2G+NXpuvVn2P1xy37ueZYlDqZ4oo pQW4NtzLaDGMDsZCiZO9ZnoyDwKurwpdsL9qro05JzQ2vNa+IEs/f9rCPfuNmTMB/QYK 37r7gszY0Kh9me3FauHQuzZf+LVdvc7gxJ0fXCQvzL2E7Za0eAHiSrVzIP6IO2YFgF4h 7peg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=099bI5whegJNM3kSvHcOsymL7sW/VeG2lWeP0GznoQ8=; fh=O7YQZzYSYnLyXkBgux3mD1v0R80UylxkPZmYxkC/iek=; b=dcvRH9NY7NmBl2oBoSc55gsU7sJcjqooxPn43J6mGhDkLJSQZKgLUR5faN5wDTBNww MJI4epEGXyxw2DQHRejNoEIP0hC6jqW8+KQUHYsoa8sZ1opzuxY/CDcj1uUibAZIQZqh pniWl+u9qRvvmYJenmIpeAO+4H2BvOUKIq0RqlzizPK9O0tcWECSm3V3FI15YEbH/WqW KcopfIWvtC10z5fcCaECtdRHOkm/1iC12jH1FfjtqO1xLVoV1ZJPCK1cwhm5nEkwkXc+ vNbx7o3ll6i/QxXt9Mf+S/sEGc727uhkxGbUBUFD2Ui+0AqSv5ciN582yrYzTukpPhiw 4n7w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Nubu1fyR; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-76342-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76342-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t5-20020a056402524500b005649255c2eesi3386987edd.532.2024.02.22.02.35.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 02:35:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76342-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Nubu1fyR; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-76342-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76342-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1F1BF1F21B9C for ; Thu, 22 Feb 2024 10:35:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 00B203FB17; Thu, 22 Feb 2024 10:35:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Nubu1fyR" Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5ED1D3EA7B for ; Thu, 22 Feb 2024 10:35:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708598104; cv=none; b=gPXAr278HZGlyUjGVg9Wn3vTH5Ie0/RGo3RQjLOgFYXm4UEpa4BStMerNRgMWWZoFJ1+8DMCGmrnj/oq7yQjnSbiaEBAGRRYu3L9Ez0HuKCgiqmi47FYbSf0EFj4Y17WTC0DUHI/UYmFxE0ygG3ErZO/JcMn+cRVG6tG6Du+WEw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708598104; c=relaxed/simple; bh=DUuD5h3whIgZurEejVIOfjuaYKqtr3eaOdEzgCLsmvQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=To7D174enjBMEBkUzQD7hjbbTCR1xOgGBe4Q0mhZ0R4jp61r5Kbrp/H2vTwfKB0lO6WPnBAa0aU/BWupsgr7SkiVnpxz/LVgdnMOfcAhMQhnQ1nim/Egaof21BNqmJtlLz3OgokWDegBmwQrCd4lyeMNseAKo5AU2oVrat3ne+g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Nubu1fyR; arc=none smtp.client-ip=209.85.128.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-41279203064so9491505e9.1 for ; Thu, 22 Feb 2024 02:35:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708598101; x=1709202901; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=099bI5whegJNM3kSvHcOsymL7sW/VeG2lWeP0GznoQ8=; b=Nubu1fyRYOH6t1kPysYfEatDHrpl5VY0BVpl0kIxTt+qCR4zio9I5rE9UrXxu2ontI tK66eSnqk0TUKK0+zUPnHbG8/DkRlUpI/DnCRhuw5KSD/oswGITmVMkIKMP9F3AzNxzP 9UrgrbGqwLkRLyTnTEUuC9NFwkQfaJfN96AAHpQnVQUQ67qFupTGLhBDNx8hLhLwbUX/ cndoRs6jdqzxiY+BVn9q5dhuuj2rrLtkkAI3L6U9AkfyiUaKwDVnhwZTTdxSEBMUxL29 d3oNMYEbcD5X4vdjD4rmoipYL0uM9XzzbNh/yDmYfHBurugfCJac3wmjGIY5yo/4x1Uu PWUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708598101; x=1709202901; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=099bI5whegJNM3kSvHcOsymL7sW/VeG2lWeP0GznoQ8=; b=KyETIOW+INnGPLLmnA8v5HddgcXvZgRXJi9Z2x0xiiFD8l9ZyxKgWN7kjBLeM7QPuc D9RoR7cnwuv3xHjTJC0S1Xj+U5lEGkEf+YEg7fZUzjZhEfXjlYoet7/niTBn81WjOL0W WIxJ4+yMklMukL4S1UK/zpk5Znj4FG+maMnlMRFffYVF9dKQqMPO7PTdqjEJ8aIlfaTO E6ctQLn7lyedjipT1eYpRDzUDKfctQb2CV+5b5hE1f5M5YaCfqw6vEr70RmhJ2YrYB8X 0KM4Z6mEW8Hzy4hFT9DN6dn4FCjYlNZMWjaM2Or8nuKsP7M8F0Dd3xHgsXD9QCoEnrFi wH7A== X-Gm-Message-State: AOJu0Yxe3i+cFI9rJqYrin0Ptrr7PKxYq0xt/inpuy4kuozx6aYJD1m4 0vlz9MZvO+n49RGyhcXkADXGzgvxt7mFczpgoFKiL6Di0Dza/3qu5T60YiFylFo= X-Received: by 2002:a05:600c:5390:b0:411:c789:5730 with SMTP id hg16-20020a05600c539000b00411c7895730mr15352026wmb.35.1708598100671; Thu, 22 Feb 2024 02:35:00 -0800 (PST) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id f9-20020a05600c44c900b00411e3cc0e0asm20587921wmo.44.2024.02.22.02.34.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Feb 2024 02:35:00 -0800 (PST) Message-ID: <3669e59f-a8d5-4f29-a0d7-3b40938d84c2@linaro.org> Date: Thu, 22 Feb 2024 11:34:59 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/6] thermal: intel: Discard trip tables after zone registration Content-Language: en-US To: "Rafael J. Wysocki" , Linux PM Cc: LKML , Linux ACPI , Lukasz Luba , Zhang Rui , Srinivas Pandruvada , Stanislaw Gruszka , AngeloGioacchino Del Regno , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team References: <4551531.LvFx2qVVIh@kreacher> <3287354.44csPzL39Z@kreacher> From: Daniel Lezcano In-Reply-To: <3287354.44csPzL39Z@kreacher> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 14/02/2024 13:42, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Because the thermal core creates and uses its own copy of the trips > table passed to thermal_zone_device_register_with_trips(), it is not > necessary to hold on to a local copy of it any more after the given > thermal zone has been registered. > > Accordingly, modify Intel thermal drivers to discard the trips tables > passed to thermal_zone_device_register_with_trips() after thermal zone > registration, for example by storing them in local variables which are > automatically discarded when the zone registration is complete. > > Also make some additional code simplifications unlocked by the above > changes. > > Signed-off-by: Rafael J. Wysocki Acked-by: Daniel Lezcano -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog