Re: [PATCH v2] regulator: core: Use ktime_get_boottime() to determine how long a regulator was off

From: Mark Brown
Date: Thu Feb 23 2023 - 06:22:33 EST


On Thu, Feb 23, 2023 at 12:33:30AM +0000, Matthias Kaehlcke wrote:

> delay on resume before it is re-enabled, even though the regulator
> might have been off for hours. ktime_get_boottime() accounts for
> suspend time, use it instead of ktime_get().

This API seems like landmines...

Attachment: signature.asc
Description: PGP signature