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
5e03c83e
Commit
5e03c83e
authored
Dec 17, 2002
by
Oliver Neukum
Committed by
Greg Kroah-Hartman
Dec 17, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: speedtouch: eliminate sleep_on
parent
c5af7579
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
drivers/usb/misc/speedtouch.c
drivers/usb/misc/speedtouch.c
+16
-1
No files found.
drivers/usb/misc/speedtouch.c
View file @
5e03c83e
...
@@ -432,17 +432,32 @@ int udsl_atm_processqueue_thread (void *data)
...
@@ -432,17 +432,32 @@ int udsl_atm_processqueue_thread (void *data)
strcpy
(
current
->
comm
,
"kSpeedSARd"
);
strcpy
(
current
->
comm
,
"kSpeedSARd"
);
add_wait_queue
(
&
udsl_wqh
,
&
wait
);
add_wait_queue
(
&
udsl_wqh
,
&
wait
);
set_current_state
(
TASK_INTERRUPTIBLE
);
for
(;;)
{
for
(;;)
{
interruptible_sleep_on
(
&
udsl_wqh
);
schedule
(
);
if
(
signal_pending
(
current
))
if
(
signal_pending
(
current
))
break
;
break
;
PDEBUG
(
"SpeedSARd awoke
\n
"
);
PDEBUG
(
"SpeedSARd awoke
\n
"
);
retry:
for
(
i
=
0
;
i
<
MAX_UDSL
;
i
++
)
for
(
i
=
0
;
i
<
MAX_UDSL
;
i
++
)
if
(
minor_data
[
i
])
if
(
minor_data
[
i
])
udsl_atm_processqueue
(
minor_data
[
i
]);
udsl_atm_processqueue
(
minor_data
[
i
]);
set_current_state
(
TASK_INTERRUPTIBLE
);
/* we must check for data recieved and restart processing if there's any */
for
(
i
=
0
;
i
<
MAX_UDSL
;
i
++
)
{
spin_lock_irq
(
&
minor_data
[
i
]
->
recvqlock
);
if
(
!
skb_queue_empty
(
&
minor_data
[
i
]
->
recvqueue
))
{
spin_unlock_irq
(
&
minor_data
[
i
]
->
recvqlock
);
set_current_state
(
TASK_RUNNING
);
goto
retry
;
}
else
{
spin_unlock_irq
(
&
minor_data
[
i
]
->
recvqlock
);
}
}
};
};
set_current_state
(
TASK_RUNNING
);
remove_wait_queue
(
&
udsl_wqh
,
&
wait
);
remove_wait_queue
(
&
udsl_wqh
,
&
wait
);
PDEBUG
(
"SpeedSARd is exiting
\n
"
);
PDEBUG
(
"SpeedSARd is exiting
\n
"
);
complete_and_exit
(
&
thread_grave
,
0
);
complete_and_exit
(
&
thread_grave
,
0
);
...
...
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