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
Kirill Smelkov
linux
Commits
10a2657b
Commit
10a2657b
authored
Feb 27, 2003
by
Duncan Sands
Committed by
Greg Kroah-Hartman
Feb 27, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB speedtouch: don't race the tasklets
parent
0f13a700
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drivers/usb/misc/speedtouch.c
drivers/usb/misc/speedtouch.c
+2
-2
No files found.
drivers/usb/misc/speedtouch.c
View file @
10a2657b
...
...
@@ -326,10 +326,10 @@ static void udsl_complete_receive (struct urb *urb, struct pt_regs *regs)
dbg
(
"udsl_complete_receive entered (urb 0x%p, status %d)"
,
urb
,
urb
->
status
);
tasklet_schedule
(
&
instance
->
receive_tasklet
);
/* may not be in_interrupt() */
spin_lock_irqsave
(
&
instance
->
completed_receivers_lock
,
flags
);
list_add_tail
(
&
rcv
->
list
,
&
instance
->
completed_receivers
);
tasklet_schedule
(
&
instance
->
receive_tasklet
);
spin_unlock_irqrestore
(
&
instance
->
completed_receivers_lock
,
flags
);
}
...
...
@@ -489,11 +489,11 @@ static void udsl_complete_send (struct urb *urb, struct pt_regs *regs)
dbg
(
"udsl_complete_send entered (urb 0x%p, status %d)"
,
urb
,
urb
->
status
);
tasklet_schedule
(
&
instance
->
send_tasklet
);
/* may not be in_interrupt() */
spin_lock_irqsave
(
&
instance
->
send_lock
,
flags
);
list_add
(
&
snd
->
list
,
&
instance
->
spare_senders
);
list_add
(
&
snd
->
buffer
->
list
,
&
instance
->
spare_buffers
);
tasklet_schedule
(
&
instance
->
send_tasklet
);
spin_unlock_irqrestore
(
&
instance
->
send_lock
,
flags
);
}
...
...
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