From: Nicholas Mc Guire <der.herr@hofr.at>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Hans de Goede <hdegoede@redhat.com>,
Nicholas Mc Guire <hofrat@osadl.org>,
Henrik Rydberg <rydberg@bitmath.org>,
Rob Herring <robh@kernel.org>, Daniel Jansen <djaniboe@gmail.com>,
Dan Carpenter <dan.carpenter@oracle.com>,
Robert Dolca <robert.dolca@intel.com>,
"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
lkml <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Input: silead: use msleep() for long delays
Date: Thu, 12 Jan 2017 18:50:02 +0000 [thread overview]
Message-ID: <20170112185002.GA26272@osadl.at> (raw)
In-Reply-To: <CAKdAkRRGh_kDPWz0KZhEj5+dwgjXY=vMMsE2v60+eqTJG01zQw@mail.gmail.com>
On Thu, Jan 12, 2017 at 10:10:44AM -0800, Dmitry Torokhov wrote:
> On Thu, Jan 12, 2017 at 9:46 AM, Hans de Goede <hdegoede@redhat.com> wrote:
> > Hi,
> >
> > On 01/12/2017 05:21 PM, Nicholas Mc Guire wrote:
> >>
> >> the delays here are in the 10 to 20ms range so msleep() will do - no
> >> need to burden the highres timer subsystem.
> >>
> >> Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
> >> ---
> >>
> >> Problem found by coccinelle script
> >>
> >> While msleep(10) has a worst case uncertainty of 10ms (on HZ=100 systems)
> >> this seems ok here as the delays are not called frequently (init and
> >> reset functions)
> >
> >
> > By the same logic, this is not much of a burden on the high-res timer
> > subsys though.
> >
> >> and the uncertainty of 10ms fits the permitted range of
> >> the original usleep_ranges().
> >
> >
> > Either way this patch is fine with me.
>
> I'd rather not because next will come a checkpatch warrior and I will
> have to convince them why msleep is OK here. And another one, and
> another one... :(
>
there is no checkpatch warning here - checkpatch only throws warnings
of range < 20ms if hardcoded but this is in a #define so its fine with
respect to checkpatch.
But if there are concerns with this - thats fine - its most likely not
critical - the goal is to have a consistent usage of highres timers -
including limiting there use to the cases where its really needed.
thx!
hofrat
prev parent reply other threads:[~2017-01-12 18:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-12 16:21 Nicholas Mc Guire
2017-01-12 17:46 ` Hans de Goede
2017-01-12 18:10 ` Dmitry Torokhov
2017-01-12 18:50 ` Nicholas Mc Guire [this message]
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=20170112185002.GA26272@osadl.at \
--to=der.herr@hofr.at \
--cc=dan.carpenter@oracle.com \
--cc=djaniboe@gmail.com \
--cc=dmitry.torokhov@gmail.com \
--cc=hdegoede@redhat.com \
--cc=hofrat@osadl.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robert.dolca@intel.com \
--cc=robh@kernel.org \
--cc=rydberg@bitmath.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®