Update of /cvsroot/alsa/alsa-kernel/core/seq In directory sc8-pr-cvs1:/tmp/cvs-serv13340/core/seq
Modified Files: seq_lock.c Log Message: Revised schedule() and set_current_state() calls. Replaced need_resched() with cond_resched() call. Index: seq_lock.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/core/seq/seq_lock.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- seq_lock.c 2 Dec 2002 15:11:45 -0000 1.7 +++ seq_lock.c 30 Sep 2003 09:28:26 -0000 1.8 @@ -25,44 +25,6 @@ #if defined(CONFIG_SMP) || defined(CONFIG_SND_DEBUG) -#if 0 /* NOT USED */ -/* (interruptible) sleep_on during the specified spinlock */ -void snd_seq_sleep_in_lock(wait_queue_head_t *p, spinlock_t *lock) -{ - wait_queue_t wait; - - set_current_state(TASK_INTERRUPTIBLE); - init_waitqueue_entry(&wait, current); - - add_wait_queue(p, &wait); - - spin_unlock(lock); - schedule(); - spin_lock_irq(lock); - - remove_wait_queue(p, &wait); -} - -/* (interruptible) sleep_on with timeout during the specified spinlock */ -long snd_seq_sleep_timeout_in_lock(wait_queue_head_t *p, spinlock_t *lock, long timeout) -{ - wait_queue_t wait; - - set_current_state(TASK_INTERRUPTIBLE); - init_waitqueue_entry(&wait, current); - - add_wait_queue(p, &wait); - - spin_unlock(lock); - timeout = schedule_timeout(timeout); - spin_lock_irq(lock); - - remove_wait_queue(p, &wait); - - return timeout; -} -#endif /* NOT USED */ - /* wait until all locks are released */ void snd_use_lock_sync_helper(snd_use_lock_t *lockp, const char *file, int line) { ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog