Re: [PATCH v3 03/14] thermal: core: Drop redundant thermal instance checks
From: Rafael J. Wysocki
Date: Wed Aug 21 2024 - 07:42:01 EST
On Wed, Aug 21, 2024 at 1:01 PM Daniel Lezcano
<daniel.lezcano@xxxxxxxxxx> wrote:
>
> On 19/08/2024 17:52, Rafael J. Wysocki wrote:
> > From: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
> >
> > Because the trip and cdev pointers are sufficient to identify a thermal
> > instance holding them unambiguously, drop the additional thermal zone
> > checks from two loops walking the list of thermal instances in a
> > thermal zone.
> >
> > No intentional functional impact.
> >
> > Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
>
> Reviewed-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>
>
> I'm wondering if the thermal_instance 'tz' field could be removed too ?
It is used in a debug printk in __thermal_cdev_update(). If that
message can be dropped, then yes, but that would be a separate patch
anyway.