[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <40ec7bb0-02ef-4af7-8934-9f960fa15355@web.de>
Date: Mon, 21 Oct 2024 13:40:52 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: "Rafael J. Wysocki" <rafael.j.wysocki@...el.com>, linux-pm@...r.kernel.org
Cc: "Rafael J. Wysocki" <rjw@...ysocki.net>,
LKML <linux-kernel@...r.kernel.org>,
Daniel Lezcano <daniel.lezcano@...aro.org>, Lukasz Luba
<lukasz.luba@....com>,
Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>,
Zhang Rui <rui.zhang@...el.com>
Subject: Re: [PATCH v2 01/11] thermal: core: Add and use thermal zone guard
…
> +++ linux-pm/drivers/thermal/thermal_helpers.c
> @@ -60,13 +60,13 @@ bool thermal_trip_is_bound_to_cdev(struc
> {
> bool ret;
>
> - mutex_lock(&tz->lock);
> + guard(thermal_zone)(tz);
> +
> mutex_lock(&cdev->lock);
>
> ret = thermal_instance_present(tz, cdev, trip);
>
> mutex_unlock(&cdev->lock);
> - mutex_unlock(&tz->lock);
>
> return ret;
> }
…
Would you become interested to apply a statement
like “guard(mutex)(&cdev->lock);”?
Regards,
Markus
Powered by blists - more mailing lists