All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] amb_talk() (msleep)
@ 2004-07-13 16:32 Nishanth Aravamudan
  0 siblings, 0 replies; only message in thread
From: Nishanth Aravamudan @ 2004-07-13 16:32 UTC (permalink / raw)
  To: kernel-janitors

Hi,

In continuing to replace, where appropriate, code with msleep() calls, I 
ran across drivers/atm/ambassador.c::amb_talk():

<snip>
  // 2.2 second wait (must not touch doorbell during 2 second DMA test)
  timeout = HZ*22/10;
  while (timeout)
    timeout = schedule_timeout (timeout);
  // give the adapter another half second?
  timeout = HZ/2;
<snip>

There is no call to set_current_state() before these timeouts are 
scheduled and thus they will return immediately. If someone could tell 
me which state (TASK_INTERRUPTIBLE or TASK_UNINTERRUPTIBLE) is desired, 
I can fix this and perhaps replace the calls with msleep().

Thanks,
Nish
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-07-13 16:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-13 16:32 [Kernel-janitors] amb_talk() (msleep) Nishanth Aravamudan

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.