lkml.org 
[lkml]   [2002]   [Aug]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH] 35/41 sound/oss/midi_synth.c - convert cli to spinlocks
From
--- 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/

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