Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
a4826ccd
Commit
a4826ccd
authored
Aug 30, 2002
by
Peter Wächtler
Committed by
Linus Torvalds
Aug 30, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] oss/wavfront.c - convert cli to spinlocks
parent
4c6c6e5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
sound/oss/wavfront.c
sound/oss/wavfront.c
+5
-6
No files found.
sound/oss/wavfront.c
View file @
a4826ccd
...
...
@@ -76,7 +76,7 @@
#include <linux/ptrace.h>
#include <linux/fcntl.h>
#include <linux/ioport.h>
#include <linux/spinlock.h>
#include <linux/interrupt.h>
#include <linux/config.h>
...
...
@@ -274,6 +274,7 @@ struct wf_config {
wait_queue_head_t
interrupt_sleeper
;
}
dev
;
static
spinlock_t
lock
=
SPIN_LOCK_UNLOCKED
;
static
int
detect_wffx
(
void
);
static
int
wffx_ioctl
(
wavefront_fx_info
*
);
static
int
wffx_init
(
void
);
...
...
@@ -2202,12 +2203,12 @@ wavefront_should_cause_interrupt (int val, int port, int timeout)
{
unsigned
long
flags
;
save_flags
(
flags
);
cli
(
);
/* this will not help on SMP - but at least it compiles */
spin_lock_irqsave
(
&
lock
,
flags
);
dev
.
irq_ok
=
0
;
outb
(
val
,
port
);
interruptible_sleep_on_timeout
(
&
dev
.
interrupt_sleeper
,
timeout
);
restore_flags
(
flags
);
spin_unlock_irqrestore
(
&
lock
,
flags
);
}
static
int
__init
wavefront_hw_reset
(
void
)
...
...
@@ -2223,8 +2224,6 @@ static int __init wavefront_hw_reset (void)
printk
(
KERN_DEBUG
LOGNAME
"autodetecting WaveFront IRQ
\n
"
);
sti
();
irq_mask
=
probe_irq_on
();
outb
(
0x0
,
dev
.
control_port
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment