From: Jia-Ju Bai <baijiaju1990@gmail.com>
To: Pavel Machek <pavel@ucw.cz>
Cc: rjw@rjwysocki.net, khilman@kernel.org, ulf.hansson@linaro.org,
len.brown@intel.com, gregkh@linuxfoundation.org,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] base: power: domain: Replace mdelay with msleep
Date: Fri, 26 Jan 2018 18:28:29 +0800 [thread overview]
Message-ID: <bc936aa3-ce69-2531-b5bf-686425a784fd@gmail.com> (raw)
In-Reply-To: <20180126102604.GB13775@amd>
On 2018/1/26 18:26, Pavel Machek wrote:
> On Fri 2018-01-26 16:38:19, Jia-Ju Bai wrote:
>> After checking all possible call chains to genpd_dev_pm_detach() and
>> genpd_dev_pm_attach() here,
>> my tool finds that these functions are never called in atomic context,
>> namely never in an interrupt handler or holding a spinlock.
>> Thus mdelay can be replaced with msleep to avoid busy wait.
>>
>> This is found by a static analysis tool named DCNS written by
> myself.
>
> Well, cond_resched() just after msleep certainly looks like that.
>
> Did the patch receive any testing?
>
Thanks for reply :)
I only perform compilation testing but did not run it in real execution.
Thanks,
Jia-Ju Bai
next prev parent reply other threads:[~2018-01-26 10:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-26 8:38 Jia-Ju Bai
2018-01-26 10:26 ` Pavel Machek
2018-01-26 10:28 ` Jia-Ju Bai [this message]
2018-02-09 11:56 ` Rafael J. Wysocki
2018-02-09 13:58 ` Ulf Hansson
2018-02-12 10:38 ` Lucas Stach
2018-02-12 12:40 ` Ulf Hansson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bc936aa3-ce69-2531-b5bf-686425a784fd@gmail.com \
--to=baijiaju1990@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=khilman@kernel.org \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=rjw@rjwysocki.net \
--cc=ulf.hansson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®