* [PATCH] 5/11 sound/oss replace cli()
@ 2002-09-21 20:35 Peter Waechtler
0 siblings, 0 replies; only message in thread
From: Peter Waechtler @ 2002-09-21 20:35 UTC (permalink / raw)
To: linux-kernel; +Cc: Linus Torvalds
--- vanilla-2.5.36/sound/oss/dmasound/dmasound_core.c 2002-08-10
00:03:13.000000000 +0200
+++ linux-2.5-cli-oss/sound/oss/dmasound/dmasound_core.c 2002-09-09 00:33:
36.000000000 +0200
@@ -597,9 +597,9 @@
is drained - and if we get here in time then it does not apply.
*/
- save_flags(flags) ; cli() ;
+ spin_lock_irqsave(&dmasound.lock, flags);
write_sq.syncing &= ~2 ; /* take out POST status */
- restore_flags(flags) ;
+ spin_unlock_irqrestore(&dmasound.lock, flags);
if (write_sq.count > 0 &&
(bLeft = write_sq.block_size-write_sq.rear_size) > 0) {
@@ -1347,6 +1347,7 @@
if (dmasound.mach.record)
sq_fops.read = sq_read ;
#endif
+ spin_lock_init(&dmasound.lock);
sq_unit = register_sound_dsp(&sq_fops, -1);
if (sq_unit < 0) {
printk(KERN_ERR "dmasound_core: couldn't register fops\n") ;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-09-22 9:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-21 20:35 [PATCH] 5/11 sound/oss replace cli() Peter Waechtler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).