Re: [PATCH 1/2] pm: runtime: Simplify pm_runtime_get_if_active() usage

Jacek Lawrynowicz
2024-01-09T17:23:30Z

On 09.01.2024 14:36, Sakari Ailus wrote:
> There are two ways to opportunistically increment a device's runtime PM
> usage count, calling either pm_runtime_get_if_active() or
> pm_runtime_get_if_in_use(). The former has an argument to tell whether to
> ignore the usage count or not, and the latter simply calls the former with
> ign_usage_count set to false. The other users that want to ignore the
> usage_count will have to explitly set that argument to true which is a bit
> cumbersome.
>
> To make this function more practical to use, remove the ign_usage_count
> argument from the function. The main implementation is renamed as
> __pm_runtime_get_conditional().
>
> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
> ---

For drivers/accel/ivpu:

Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>

Thanks,
Jacek