From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (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 D53043D97D for ; Thu, 22 Feb 2024 10:28:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708597703; cv=none; b=ntbcKRyOywgj53IvmJVK5cc/UhK+tSZxZp/bZuaO0pIRZ/yYvEx0CROG3YU1anvTPuwuIP9Rmbf9dWwTtFVk5Dz3C9Sty9jjUf7URSEH+Itq+5Pp3ubof55sj11oS+eqHd2aT9ZFc9Un2nz7rnWEXuHFn7QTCJZwTAXhiwx8WPM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708597703; c=relaxed/simple; bh=e1Nf+e6QJOb88993HOv4a91YL5tPMYCzJk2a1amXTMY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=g8ohWgq7+7fFGJ++k8vsDVfPPz/LVbq2VKbT0Vg9oElIcHOPkTmm50cvWxqzyf3PMQM/FA/KbXLvr0gejuTAYRP/gTZJmS4FUX7NQpgenIOdLTEfyKTlK5GHkk9xI4i6zodR0V2GiKsYqcc7wBX1N/FgoqBu878uifRqpWilCUk= 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=zDvvYDNU; arc=none smtp.client-ip=209.85.221.50 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zDvvYDNU" Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-3394ca0c874so4203408f8f.2 for ; Thu, 22 Feb 2024 02:28:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708597699; x=1709202499; 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=H2dv+kRmhG2H1KzIBT+MOGitjcmQKTmnVtmgNOX7NH8=; b=zDvvYDNUOigd6PX2cmbfo5PZUdYexIsTAp65NMHGG4d79idVU94oWDtHQMV/sgUTUP sO0eVjXLz8bkICLmJrYrbM+uGbACc0vRRMCTvt24h9CwXvBcCl8EHgBOe9UzyvAyz7jy BobfgA0iMSa9BF6bVmNRmVaWtOtiBGxiHfOYu2lvftTlIPM/9PUq4hRkyuCkzBzHHiMW 5eWhTD+xb9Ia+KrAJFUVrDHqz/aA8AfeiTiNqWmWCJcOT/0/gTDr/972jtGiLUnhNfww OsOuMpLXc5p9trazEHNhTZZw1o/OgGJRthlZjbBuCAc8B66k0wdA1cIM8PyKpAybgbOd apwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708597699; x=1709202499; 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=H2dv+kRmhG2H1KzIBT+MOGitjcmQKTmnVtmgNOX7NH8=; b=hPzxzQJpehh39pnEbroPPoq+bxEPvQnjgeoAy54Jbx2NzQvnjmjVlqTK5v6tp7AoLJ eQJPEQbmO0S49RKPZdfoDk2AAyGme4PFjgCJgfunKNpwRhOcbWLV42bPLlC+3rfRFn99 hMGZWz4X4Vq7gWoGfI2raB+i4UBhOMktJXrhHni7IrNAJCdAifDzSh08V3nQEOJhFi/P eiPE5+CV4ggdQIycn5WAgyDl+0ZPy3ohMfYCeOTci+i2mnuFD/Ut5vkg1aUqTKOvOF0t rtT52iHniYGHwUa2Xqu4d1ZYzMuJ4RZwUDIcAvcctj+w2cWixMuk/A2mJU2kQuYm/qsI bwQA== X-Forwarded-Encrypted: i=1; AJvYcCVwwtIPkBPVWuggWtRZ1s7GA6r0L4K15GvtLCIP6FRc8pbUVQ6PkagvTtZlldXcTnqHlfnULgwcpMmZXIsDQ2s/fF7KIb6aXQ4= X-Gm-Message-State: AOJu0Yz1LOp/V6lLZWPV+8kh8c600M8FxZv4v/3ODD39DDlX4+k7tN+t NbzJ0bY8eyuLni19kJioWiBpw7IOe8dCyj8cCrkR4fFXyMOVP4BxpOpbN08xF6Q= X-Google-Smtp-Source: AGHT+IFsDXoJccsFatQLWow2/gzhs6hnmqbEzWti/zh0leKEGUX5CqBgt0fzP7VQ1mTJLDRV15YYgw== X-Received: by 2002:a5d:58cc:0:b0:33d:3c58:7c56 with SMTP id o12-20020a5d58cc000000b0033d3c587c56mr8240810wrf.54.1708597699137; Thu, 22 Feb 2024 02:28:19 -0800 (PST) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id bx9-20020a5d5b09000000b0033d202abf01sm5124036wrb.28.2024.02.22.02.28.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Feb 2024 02:28:18 -0800 (PST) Message-ID: <71157ea2-23bc-465e-89e6-2161dbcc32e6@linaro.org> Date: Thu, 22 Feb 2024 11:28:18 +0100 Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/6] thermal: ACPI: Discard trips table 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> <13457348.uLZWGnKmhe@kreacher> From: Daniel Lezcano In-Reply-To: <13457348.uLZWGnKmhe@kreacher> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 14/02/2024 13:30, 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 the ACPI thermal driver to store the trips table > passed to thermal_zone_device_register_with_trips() in a local variable > which is automatically discarded when acpi_thermal_add() returns to > its caller. > > Also make some additional code simplifications unlocked by the above > change. > > Signed-off-by: Rafael J. Wysocki > Reviewed-by: Stanislaw Gruszka Acked-by: Daniel Lezcano -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog