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
161375cd
Commit
161375cd
authored
Feb 23, 2004
by
Ben Collins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IEEE1394(r1159): Merge run_packet_complete into kernel thread.
parent
a0eb890e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
13 deletions
+6
-13
drivers/ieee1394/ieee1394_core.c
drivers/ieee1394/ieee1394_core.c
+6
-13
No files found.
drivers/ieee1394/ieee1394_core.c
View file @
161375cd
...
@@ -983,18 +983,6 @@ static LIST_HEAD(hpsbpkt_list);
...
@@ -983,18 +983,6 @@ static LIST_HEAD(hpsbpkt_list);
static
DECLARE_MUTEX_LOCKED
(
khpsbpkt_sig
);
static
DECLARE_MUTEX_LOCKED
(
khpsbpkt_sig
);
static
spinlock_t
khpsbpkt_lock
=
SPIN_LOCK_UNLOCKED
;
static
spinlock_t
khpsbpkt_lock
=
SPIN_LOCK_UNLOCKED
;
static
void
run_packet_complete
(
struct
hpsb_packet
*
packet
)
{
void
(
*
complete_routine
)(
void
*
)
=
packet
->
complete_routine
;
void
*
complete_data
=
packet
->
complete_data
;
packet
->
complete_routine
=
NULL
;
packet
->
complete_data
=
NULL
;
complete_routine
(
complete_data
);
return
;
}
static
void
queue_packet_complete
(
struct
hpsb_packet
*
packet
)
static
void
queue_packet_complete
(
struct
hpsb_packet
*
packet
)
{
{
...
@@ -1022,8 +1010,13 @@ static int hpsbpkt_thread(void *__hi)
...
@@ -1022,8 +1010,13 @@ static int hpsbpkt_thread(void *__hi)
while
(
!
down_interruptible
(
&
khpsbpkt_sig
))
{
while
(
!
down_interruptible
(
&
khpsbpkt_sig
))
{
spin_lock_irqsave
(
&
khpsbpkt_lock
,
flags
);
spin_lock_irqsave
(
&
khpsbpkt_lock
,
flags
);
list_for_each_entry_safe
(
packet
,
next
,
&
hpsbpkt_list
,
list
)
{
list_for_each_entry_safe
(
packet
,
next
,
&
hpsbpkt_list
,
list
)
{
void
(
*
complete_routine
)(
void
*
)
=
packet
->
complete_routine
;
void
*
complete_data
=
packet
->
complete_data
;
list_del
(
&
packet
->
list
);
list_del
(
&
packet
->
list
);
run_packet_complete
(
packet
);
packet
->
complete_routine
=
packet
->
complete_data
=
NULL
;
complete_routine
(
complete_data
);
}
}
spin_unlock_irqrestore
(
&
khpsbpkt_lock
,
flags
);
spin_unlock_irqrestore
(
&
khpsbpkt_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