[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <158774930920.135303.8846586262429360001@swboyd.mtv.corp.google.com>
Date: Fri, 24 Apr 2020 10:28:29 -0700
From: Stephen Boyd <swboyd@...omium.org>
To: Doug Anderson <dianders@...omium.org>
Cc: Andy Gross <agross@...nel.org>,
Bjorn Andersson <bjorn.andersson@...aro.org>,
LKML <linux-kernel@...r.kernel.org>,
linux-arm-msm <linux-arm-msm@...r.kernel.org>,
Maulik Shah <mkshah@...eaurora.org>
Subject: Re: [PATCH 1/3] soc: qcom: rpmh-rsc: Remove tcs_is_free() API
Quoting Doug Anderson (2020-04-24 10:12:04)
> On Thu, Apr 23, 2020 at 9:54 PM Stephen Boyd <swboyd@...omium.org> wrote:
> > + unsigned long i;
> >
> > - for (i = 0; i < tcs->num_tcs; i++) {
> > - if (tcs_is_free(tcs->drv, tcs->offset + i))
> > - return tcs->offset + i;
> > - }
> > + i = find_next_zero_bit(drv->tcs_in_use, MAX_TCS_NR, tcs->offset);
>
> Rather than passing MAX_TCS_NR would it be legit to pass "tcs->offset
> + tcs->num_tcs"? You are passing that as "size" above in
> check_for_req_inflight().
Yeah I think that should work. I'll roll it in.
Powered by blists - more mailing lists