Messages in this thread Patch in this message | | | Date | Fri, 14 May 1999 03:24:33 +0200 (CEST) | From | Andrea Arcangeli <> | 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/
| |