Re: [PATCH v1 0/3] thermal/debugfs: Fix and clean up trip point statistics updates

From: Daniel Lezcano
Date: Mon Apr 22 2024 - 12:12:35 EST


On 22/04/2024 17:48, Rafael J. Wysocki wrote:
On Mon, Apr 22, 2024 at 5:34 PM Daniel Lezcano

[ ... ]

or we should expect at least the residency to be showed even if the
mitigation state is not closed ?

Well, in fact the device has already been in that state for some time
and the mitigation can continue for a while.

Yes, but when to update the residency time ?

When we cross a trip point point ?

or

When we read the information ?

The former is what we are currently doing AFAIR and the latter must add the delta between the last update and the current time for the current state, right ?


--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog