* [KJ] [PATCH 17/21] polling loops: change exit condition to
@ 2005-12-04 0:22 Marcin Slusarz
0 siblings, 0 replies; only message in thread
From: Marcin Slusarz @ 2005-12-04 0:22 UTC (permalink / raw)
To: kernel-janitors
S390
P: Martin Schwidefsky
M: schwidefsky@de.ibm.com
M: linux390@de.ibm.com
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
diff -upr -X linux-2.6.15-rc4/Documentation/dontdiff linux-2.6.15-rc4-orig/drivers/s390/net/lcs.c linux-2.6.15-rc4/drivers/s390/net/lcs.c
--- linux-2.6.15-rc4-orig/drivers/s390/net/lcs.c 2005-12-03 15:22:34.000000000 +0100
+++ linux-2.6.15-rc4/drivers/s390/net/lcs.c 2005-12-03 16:53:10.000000000 +0100
@@ -1643,10 +1643,11 @@ lcs_detect(struct lcs_card *card)
static int
lcs_resetcard(struct lcs_card *card)
{
- int retries;
+ unsigned long end_time;
LCS_DBF_TEXT(2, trace, "rescard");
- for (retries = 0; retries < 10; retries++) {
+ end_time = jiffies + msecs_to_jiffies(30000);
+ while (time_before(jiffies, end_time)) {
if (lcs_detect(card) = 0) {
netif_wake_queue(card->dev);
card->state = DEV_STATE_UP;
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-12-04 0:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-04 0:22 [KJ] [PATCH 17/21] polling loops: change exit condition to Marcin Slusarz
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.