lkml.org 
[lkml]   [1999]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] awe_wave waitqueue
It seems to me that awe_wave didn't need the waitqueue at all ;).

Index: awe_wave.c
===================================================================
RCS file: /var/cvs/linux/drivers/sound/lowlevel/awe_wave.c,v
retrieving revision 1.1.1.2
retrieving revision 1.1.2.3
diff -u -r1.1.1.2 -r1.1.2.3
--- awe_wave.c 1999/03/09 00:53:43 1.1.1.2
+++ linux/drivers/sound/lowlevel/awe_wave.c 1999/05/14 01:03:56 1.1.2.3
@@ -979,10 +979,10 @@
}
#else

-static struct wait_queue *awe_sleeper = NULL;
static void awe_wait(unsigned short delay)
{
- interruptible_sleep_on_timeout(&awe_sleeper, (HZ * (unsigned long)delay + 44099) / 44100);
+ current->state = TASK_INTERRUPTIBLE;
+ schedule_timeout((HZ * (unsigned long)delay + 44099) / 44100);
}
#endif /* wait by loop */

Andrea Arcangeli


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.174 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site