From: der.herr@hofr.at (Nicholas Mc Guire)
To: kernelnewbies@lists.kernelnewbies.org
Subject: udelay vs usleep_range
Date: Sun, 11 Sep 2016 16:39:48 +0000 [thread overview]
Message-ID: <20160911163948.GA9349@osadl.at> (raw)
In-Reply-To: <CA+MoWDoQpJ1MxkwmyZ5AzRTqQfCkVrNx9-KGnHR=_UwKzuodfw@mail.gmail.com>
On Sun, Sep 11, 2016 at 06:37:40PM +0200, Peter Senna Tschudin wrote:
> Hi Gargi,
>
> On Sun, Sep 11, 2016 at 5:58 PM, Gargi Sharma <gs051095@gmail.com> wrote:
> > Hi all,
> >
> > I ran the checkpatch script over drivers/staging/nvec.c and got the
> > following warning
> >
> > udelay(33);
> >
> > CHECK: usleep_range is preferred over udelay; see
> > Documentation/timers/timers-howto.txt
>
> Which version of checkpatch are you using? Mine didn't catch that.
>
> $ git status
> HEAD detached at next-20160909
>
> $ ./scripts/checkpatch.pl -f ./drivers/staging/nvec/nvec.c
> total: 0 errors, 0 warnings, 988 lines checked
>
use ./scripts/checkpatch.pl -strict -f ./drivers/staging/nvec/nvec.c
to see these issues.
thx!
hofrat
next prev parent reply other threads:[~2016-09-11 16:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-11 15:58 udelay vs usleep_range Gargi Sharma
2016-09-11 16:33 ` Nicholas Mc Guire
2016-09-11 16:37 ` Peter Senna Tschudin
2016-09-11 16:39 ` Nicholas Mc Guire [this message]
2016-09-11 16:48 ` Nicholas Mc Guire
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=20160911163948.GA9349@osadl.at \
--to=der.herr@hofr.at \
--cc=kernelnewbies@lists.kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).