polling loops: change exit condition to
Subsystems (4)
PATCH 17/21 polling loops: change exit condition to
S390
P: Martin Schwidefsky
M: [email protected]
M: [email protected]
Signed-off-by Marcin Slusarz <[email protected]>
drivers/s390/net/lcs.c +3 -2
@@ -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
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors