From: Anderson Lizardo <anderson.lizardo@openbossa.org>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] Bluetooth: Update MGMT and SMP timeout constants to use msecs_to_jiffies
Date: Thu, 1 Mar 2012 20:23:50 -0400 [thread overview]
Message-ID: <CAJdJm_PHQOfstiuUfMfgtceWN=Ko37COLQNKkXb12Gc3CEOchw@mail.gmail.com> (raw)
In-Reply-To: <1330641157-32626-1-git-send-email-marcel@holtmann.org>
Hi Marcel,
On Thu, Mar 1, 2012 at 6:32 PM, Marcel Holtmann <marcel@holtmann.org> wrote=
:
> The MGMT and SMP timeout constants are always used in form of jiffies. So
> just include the conversion from msecs in the define itself. This has the
> advantage of making the code where the timeout is used more readable.
>
> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
> ---
> =A0net/bluetooth/mgmt.c | =A0 =A05 ++---
> =A0net/bluetooth/smp.c =A0| =A0 =A05 ++---
> =A02 files changed, 4 insertions(+), 6 deletions(-)
>
> diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
> index 7bd7d57..40b3da3 100644
> --- a/net/bluetooth/mgmt.c
> +++ b/net/bluetooth/mgmt.c
> @@ -116,7 +116,7 @@ static const u16 mgmt_events[] =3D {
> =A0#define INQUIRY_LEN_BREDR =A0 =A0 =A0 =A0 =A0 =A0 =A00x08 =A0 =A0/* TG=
AP(100) */
> =A0#define INQUIRY_LEN_BREDR_LE =A0 =A0 =A0 =A0 =A0 0x04 =A0 =A0/* TGAP(1=
00)/2 */
>
> -#define SERVICE_CACHE_TIMEOUT (5 * 1000)
> +#define CACHE_TIMEOUT =A0msecs_to_jiffies(2 * 1000)
Was it intentional to change timeout from 5 seconds to 2 seconds on this co=
mmit?
Regards,
--=20
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil
next prev parent reply other threads:[~2012-03-02 0:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-01 22:32 [PATCH] Bluetooth: Update MGMT and SMP timeout constants to use msecs_to_jiffies Marcel Holtmann
2012-03-01 22:36 ` Johan Hedberg
2012-03-02 0:23 ` Anderson Lizardo [this message]
2012-03-02 0:48 ` Marcel Holtmann
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='CAJdJm_PHQOfstiuUfMfgtceWN=Ko37COLQNKkXb12Gc3CEOchw@mail.gmail.com' \
--to=anderson.lizardo@openbossa.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcel@holtmann.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).