[PATCH] 35/41 sound/oss/midi_synth.c - convert cli to spinlocks

pwaechtler@mac.com
Thu, 29 Aug 2002 21:56:27 +0200


--- vanilla-2.5.32/sound/oss/midi_synth.c Sat Apr 20 18:25:20 2002
+++ linux-2.5-cli-oss/sound/oss/midi_synth.c Wed Aug 14 22:42:01 2002
@@ -418,7 +418,6 @@
{
int orig_dev = synth_devs[dev]->midi_dev;
int err;
- unsigned long flags;
struct midi_input_info *inc;

if (orig_dev < 0 || orig_dev > num_midis || midi_devs[orig_dev] == NULL)
@@ -433,14 +432,15 @@
return err;
inc = &midi_devs[orig_dev]->in_info;

- save_flags(flags);
- cli();
+ /* save_flags(flags);
+ cli();
+ don't know against what irqhandler to protect*/
inc->m_busy = 0;
inc->m_state = MST_INIT;
inc->m_ptr = 0;
inc->m_left = 0;
inc->m_prev_status = 0x00;
- restore_flags(flags);
+ /* restore_flags(flags); */

return 1;
}

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