From: Jeff Garzik <jgarzik@pobox.com>
To: domen@coderock.org
Cc: netdev@oss.sgi.com, nacc@us.ibm.com, acme@conectiva.com.br,
janitor@sternwelten.at
Subject: Re: [patch 07/26] net/cycx_drv: replace delay_cycx() with msleep_interruptible()
Date: Wed, 09 Mar 2005 15:26:20 -0500 [thread overview]
Message-ID: <422F5BEC.5060909@pobox.com> (raw)
In-Reply-To: <20050306103258.6FC481E46E@trashy.coderock.org>
domen@coderock.org wrote:
> Use msleep_interruptible() instead of delay_cycx()
> to guarantee the task delays as expected. Remove the prototype and
> definition of delay_cycx().
>
> Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
> Acked-by: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
> Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
> Signed-off-by: Domen Puncer <domen@coderock.org>
> ---
>
>
> kj-domen/drivers/net/wan/cycx_drv.c | 24 ++++++++----------------
> 1 files changed, 8 insertions(+), 16 deletions(-)
>
> diff -puN drivers/net/wan/cycx_drv.c~msleep_interruptible-drivers_net_wan_cycx_drv drivers/net/wan/cycx_drv.c
> --- kj/drivers/net/wan/cycx_drv.c~msleep_interruptible-drivers_net_wan_cycx_drv 2005-03-05 16:09:34.000000000 +0100
> +++ kj-domen/drivers/net/wan/cycx_drv.c 2005-03-05 16:09:34.000000000 +0100
> @@ -56,7 +56,7 @@
> #include <linux/sched.h> /* for jiffies, HZ, etc. */
> #include <linux/cycx_drv.h> /* API definitions */
> #include <linux/cycx_cfm.h> /* CYCX firmware module definitions */
> -#include <linux/delay.h> /* udelay */
> +#include <linux/delay.h> /* udelay, msleep */
> #include <asm/io.h> /* read[wl], write[wl], ioremap, iounmap */
>
> #define MOD_VERSION 0
> @@ -74,7 +74,6 @@ static int reset_cyc2x(void __iomem *add
> static int detect_cyc2x(void __iomem *addr);
>
> /* Miscellaneous functions */
> -static void delay_cycx(int sec);
> static int get_option_index(long *optlist, long optval);
> static u16 checksum(u8 *buf, u32 len);
>
> @@ -259,7 +258,7 @@ static int memory_exists(void __iomem *a
> if (readw(addr + 0x10) == TEST_PATTERN)
> return 1;
>
> - delay_cycx(1);
> + msleep_interruptible(1000);
use ssleep_interruptible
next prev parent reply other threads:[~2005-03-09 20:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-06 10:32 [patch 07/26] net/cycx_drv: replace delay_cycx() with msleep_interruptible() domen
2005-03-09 20:26 ` Jeff Garzik [this message]
2005-03-09 21:18 ` Nishanth Aravamudan
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=422F5BEC.5060909@pobox.com \
--to=jgarzik@pobox.com \
--cc=acme@conectiva.com.br \
--cc=domen@coderock.org \
--cc=janitor@sternwelten.at \
--cc=nacc@us.ibm.com \
--cc=netdev@oss.sgi.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).