[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAD=FV=UekHUmY5u=mhx9XE8o8bU65ACkjEeao8bhWArqXMZWng@mail.gmail.com>
Date: Wed, 30 Aug 2023 13:33:58 -0700
From: Doug Anderson <dianders@...omium.org>
To: Michał Mirosław <mirq-linux@...e.qmqm.pl>
Cc: Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Stephen Boyd <swboyd@...omium.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 7/7] regulator/core: regulator_lock_two: remove
duplicate locking code
Hi,
On Wed, Aug 30, 2023 at 10:35 AM Michał Mirosław
<mirq-linux@...e.qmqm.pl> wrote:
>
> Make regulator_lock_two() shorter by observing that we have only two
> locks and when swapped earlier the retry code becomes identical to the
> normal (optimistic) path.
>
> Signed-off-by: Michał Mirosław <mirq-linux@...e.qmqm.pl>
> ---
> drivers/regulator/core.c | 30 +++++++++-------------------
> 1 file changed, 11 insertions(+), 19 deletions(-)
FWIW, I'm leaving this one to Stephen to review since he had strong
opinions on some of the style issues here.
-Doug
Powered by blists - more mailing lists