Re: [PATCH v2] arch_topology: Trace the update thermal pressure

From: Greg KH
Date: Mon Apr 25 2022 - 10:12:59 EST


On Mon, Apr 25, 2022 at 02:53:17PM +0100, Lukasz Luba wrote:
> Add trace event to capture the moment of the call for updating the thermal
> pressure value. It's helpful to investigate how often those events occurs
> in a system dealing with throttling. This trace event is needed since the
> old 'cdev_update' might not be used by some drivers. Also, the new trace
> event shows capacity value, not a cooling state.

Wait, why are thermal events not going through the thermal system so
that thermal_cdev_update() would catch them? Don't work around broken
systems, force them to use the correct apis.

thanks,

greg k-h