From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 5D6DE3A8E4 for ; Thu, 22 Feb 2024 10:35:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708598104; cv=none; b=rEOowCHvb7tvEbkjbXecryzGHX2UjBFRvA8dU18/WiNxWaWYO1Pnaf3eJA+lNCVzclJ61d9ZGW6ItKZGNJCU9o68r2eLa01RU2MlY5XUTrFy7YER35S1muIb4cRw9awJvIKJjegl71gRrmcc9WBm1anOtgWge6pIVzxe5bRGsOE= 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.42 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="Nubu1fyR" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4128cfb6b6fso1139855e9.0 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=MPhBh1pr8ukXMhlZ57auwr+gnW+Eq/ydZU4vRLqWe66jwkIPXTx6enn2ZQYeGqs1Wg axFukP/HwvcLLmxqEGGlFAsO0s5rV5cSzs3sr1BncpfSC5lvMyzGY0SYp9GSqb4g1YcL 84genwpUuDZ+vcKuCH3hZYnjZA+PhXogRQrBBT/+5bJO7cOzeRjuQwgbqb++IJ2Bcxq7 J+x/GjKGMUEX/qBGcUj1UKv3RbxzubCc1jAANd0MekRQ90BPL5cQlZZM7F7v+FpZkZJO o1EkpLppeUJxv61PpmXh4RD4JR1IrTF131bu6mcWdQoI4gjtQtRTTf4uUpwIk3ARQj8o x0bA== X-Forwarded-Encrypted: i=1; AJvYcCWfxp367W96M/F9vx2Qtdc6SEn7T8sOxn2kGSuxFWlZcj/5JQsCPfGfiXAO6DzkfCGOQKsV2dGdgzD0uAonPKWy61mqsWX0Rck= X-Gm-Message-State: AOJu0YwGXGQHLxcCYf0Igv/ANdFralenOOz5bKnlZiacoopIg9CYG95W UozXfyKRNWLiqbz4Ufbk4y3ouX+6wz3a1yarQ4nuWyasUunrC7cUIJCM/JLSSC4wB23NHZiYzgN + X-Google-Smtp-Source: AGHT+IFy8GOQQB6SlMWw6li/ppqbiYFPN6dz8gJI4RgkqeNAmBoIQEonmSoWKBV4qkxMOL7S4P+J7A== 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-pm@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