From: Arend van Spriel <arend@broadcom.com>
To: Nicholas Mc Guire <hofrat@osadl.org>
Cc: Brett Rudley <brudley@broadcom.com>,
"Franky (Zhenhui) Lin" <frankyl@broadcom.com>,
Hante Meuleman <meuleman@broadcom.com>,
Kalle Valo <kvalo@codeaurora.org>,
Pieter-Paul Giesberts <pieterpg@broadcom.com>,
"John W. Linville" <linville@tuxdriver.com>,
Daniel Kim <dekim@broadcom.com>, <linux-wireless@vger.kernel.org>,
<brcm80211-dev-list@broadcom.com>, <netdev@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] brcmfmac: use msecs_to_jiffies for time conversion
Date: Wed, 11 Feb 2015 19:18:25 +0100 [thread overview]
Message-ID: <54DB9CF1.7050606@broadcom.com> (raw)
In-Reply-To: <1423218405-17624-1-git-send-email-hofrat@osadl.org>
On 02/06/15 11:26, Nicholas Mc Guire wrote:
> This is only an API consolidation and should make things more readable
> it replaces var * HZ / 1000 by msecs_to_jiffies(var).
Acked-by: Arend van Spriel <arend@broadcom.com>
> Signed-off-by: Nicholas Mc Guire<hofrat@osadl.org>
> ---
>
> Patch was only compile tested with x86_64_defconfig + CONFIG_BRCMFMAC=m,
> CONFIG_MMC=m, CONFIG_BRCMFMAC_SDIO=y
>
> Patch is against 3.19.0-rc7 (localversion-next is -next-20150204)
>
> drivers/net/wireless/brcm80211/brcmfmac/sdio.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/wireless/brcm80211/brcmfmac/sdio.c b/drivers/net/wireless/brcm80211/brcmfmac/sdio.c
> index 5e9d208..4f9469b 100644
> --- a/drivers/net/wireless/brcm80211/brcmfmac/sdio.c
> +++ b/drivers/net/wireless/brcm80211/brcmfmac/sdio.c
> @@ -3972,7 +3972,7 @@ brcmf_sdio_watchdog(unsigned long data)
> /* Reschedule the watchdog */
> if (bus->wd_timer_valid)
> mod_timer(&bus->timer,
> - jiffies + BRCMF_WD_POLL_MS * HZ / 1000);
> + jiffies + msecs_to_jiffies(BRCMF_WD_POLL_MS));
> }
> }
>
> @@ -4291,13 +4291,13 @@ void brcmf_sdio_wd_timer(struct brcmf_sdio *bus, uint wdtick)
> dynamically changed or in the first instance
> */
> bus->timer.expires =
> - jiffies + BRCMF_WD_POLL_MS * HZ / 1000;
> + jiffies + msecs_to_jiffies(BRCMF_WD_POLL_MS);
> add_timer(&bus->timer);
>
> } else {
> /* Re arm the timer, at last watchdog period */
> mod_timer(&bus->timer,
> - jiffies + BRCMF_WD_POLL_MS * HZ / 1000);
> + jiffies + msecs_to_jiffies(BRCMF_WD_POLL_MS));
> }
>
> bus->wd_timer_valid = true;
next prev parent reply other threads:[~2015-02-11 18:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-06 10:26 [PATCH] brcmfmac: use msecs_to_jiffies for time conversion Nicholas Mc Guire
2015-02-11 18:18 ` Arend van Spriel [this message]
2015-02-26 13:01 ` Kalle Valo
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=54DB9CF1.7050606@broadcom.com \
--to=arend@broadcom.com \
--cc=brcm80211-dev-list@broadcom.com \
--cc=brudley@broadcom.com \
--cc=dekim@broadcom.com \
--cc=frankyl@broadcom.com \
--cc=hofrat@osadl.org \
--cc=kvalo@codeaurora.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=meuleman@broadcom.com \
--cc=netdev@vger.kernel.org \
--cc=pieterpg@broadcom.com \
/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).