netdev
[Top] [All Lists]

Re: [patch 13/18] net/cycx_drv: replace delay_cycx() with msleep_inter

To: janitor@xxxxxxxxxxxxxx
Subject: Re: [patch 13/18] net/cycx_drv: replace delay_cycx() with msleep_interruptible()
From: Jeff Garzik <jgarzik@xxxxxxxxx>
Date: Sun, 31 Oct 2004 06:04:07 -0500
Cc: netdev@xxxxxxxxxxx, nacc@xxxxxxxxxx, acme@xxxxxxxxxxxxxxxx
In-reply-to: <E1CO1w4-0002YG-VR@sputnik>
References: <E1CO1w4-0002YG-VR@sputnik>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922
janitor@xxxxxxxxxxxxxx wrote:
-/* Delay */
-static void delay_cycx(int sec)
-{
-       set_current_state(TASK_INTERRUPTIBLE);
-       schedule_timeout(sec * HZ);
-}


this _clearly_ wants an ssleep() derivative, not msleep()

        Jeff



<Prev in Thread] Current Thread [Next in Thread>