[PATCH] drivers/atm/nicstar.c: replace interruptible_sleep_on_timeout() From: irwan.djajadi@iname.com Replace interruptible_sleep_on_timeout() with wait_event_interruptible_timeout(). Signed-off-by: Irwan Djajadi Signed-off-by: Alexey Dobriyan Index: linux-kj/drivers/atm/nicstar.c =================================================================== --- linux-kj.orig/drivers/atm/nicstar.c 2005-10-28 16:30:13.000000000 +0400 +++ linux-kj/drivers/atm/nicstar.c 2005-10-28 16:39:55.000000000 +0400 @@ -1905,7 +1905,7 @@ static int push_scqe(ns_dev *card, vc_ma scq->full = 1; spin_unlock_irqrestore(&scq->lock, flags); - interruptible_sleep_on_timeout(&scq->scqfull_waitq, SCQFULL_TIMEOUT); + wait_event_interruptible_timeout(scq->scqfull_waitq, !scq->full, SCQFULL_TIMEOUT); ns_grab_scq_lock(card, scq, flags); if (scq->full) { @@ -1954,7 +1954,7 @@ static int push_scqe(ns_dev *card, vc_ma scq->full = 1; if (has_run++) break; spin_unlock_irqrestore(&scq->lock, flags); - interruptible_sleep_on_timeout(&scq->scqfull_waitq, SCQFULL_TIMEOUT); + wait_event_interruptible_timeout(scq->scqfull_waitq, !scq->full, SCQFULL_TIMEOUT); ns_grab_scq_lock(card, scq, flags); }