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
35d1efe7
Commit
35d1efe7
authored
Dec 18, 2002
by
Oliver Neukum
Committed by
Greg Kroah-Hartman
Dec 18, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: more spinlock work for speedtouch
- simple spinlocks will do
parent
8e1a8efa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
drivers/usb/misc/speedtouch.c
drivers/usb/misc/speedtouch.c
+2
-3
No files found.
drivers/usb/misc/speedtouch.c
View file @
35d1efe7
...
@@ -701,7 +701,6 @@ void udsl_usb_data_receive (struct urb *urb, struct pt_regs *regs)
...
@@ -701,7 +701,6 @@ void udsl_usb_data_receive (struct urb *urb, struct pt_regs *regs)
{
{
struct
udsl_data_ctx
*
ctx
;
struct
udsl_data_ctx
*
ctx
;
struct
udsl_instance_data
*
instance
;
struct
udsl_instance_data
*
instance
;
unsigned
long
flags
;
if
(
!
urb
)
if
(
!
urb
)
return
;
return
;
...
@@ -723,9 +722,9 @@ void udsl_usb_data_receive (struct urb *urb, struct pt_regs *regs)
...
@@ -723,9 +722,9 @@ void udsl_usb_data_receive (struct urb *urb, struct pt_regs *regs)
skb_put
(
ctx
->
skb
,
urb
->
actual_length
);
skb_put
(
ctx
->
skb
,
urb
->
actual_length
);
/* queue the skb for processing and wake the SAR */
/* queue the skb for processing and wake the SAR */
spin_lock
_irqsave
(
&
instance
->
recvqlock
,
flags
);
spin_lock
(
&
instance
->
recvqlock
);
skb_queue_tail
(
&
instance
->
recvqueue
,
ctx
->
skb
);
skb_queue_tail
(
&
instance
->
recvqueue
,
ctx
->
skb
);
spin_unlock
_irqrestore
(
&
instance
->
recvqlock
,
flags
);
spin_unlock
(
&
instance
->
recvqlock
);
wake_up
(
&
udsl_wqh
);
wake_up
(
&
udsl_wqh
);
/* get a new skb */
/* get a new skb */
ctx
->
skb
=
dev_alloc_skb
(
UDSL_RECEIVE_BUFFER_SIZE
);
ctx
->
skb
=
dev_alloc_skb
(
UDSL_RECEIVE_BUFFER_SIZE
);
...
...
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