Re: [PATCH v4] ufs: core: ufshcd: use local_clock() for debugging timestamps

From: Stanley Chu
Date: Tue Aug 02 2022 - 19:58:06 EST


Hi Daniil,

On Wed, Aug 3, 2022 at 5:44 AM Daniil Lunev <dlunev@xxxxxxxxxxxx> wrote:
>
> CLOCK_MONOTONIC is not advanced when the system is in suspend. This
> becomes problematic when debugging issues related to suspend-resume:
> the timestamps printed by ufshcd_print_trs can not be correlated with
> dmesg entries, which are timestamped with local_clock().
>
> This CL changes the used clock to local_clock() for the informational
> timestamp variables and adds mirroring *_local_clock instances for
> variables used in subsequent derevations (to not change the semantics of
> those derevations).
>
> Signed-off-by: Daniil Lunev <dlunev@xxxxxxxxxxxx>
>
> ---

Please kindly add all Reviewed or Acked tags received in previous
versions to any newer patches.

Thanks,
Stanley