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
69c1e9d6
Commit
69c1e9d6
authored
Jul 17, 2003
by
Alan Cox
Committed by
Linus Torvalds
Jul 17, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] use cpu_relax in seq8005
parent
0d1f2496
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
drivers/net/seeq8005.c
drivers/net/seeq8005.c
+3
-2
No files found.
drivers/net/seeq8005.c
View file @
69c1e9d6
...
...
@@ -700,7 +700,8 @@ static void hardware_send_packet(struct net_device * dev, char *buf, int length)
* wait_for_buffer
*
* This routine waits for the SEEQ chip to assert that the FIFO is ready
* by checking for a window interrupt, and then clearing it
* by checking for a window interrupt, and then clearing it. This has to
* occur in the interrupt handler!
*/
inline
void
wait_for_buffer
(
struct
net_device
*
dev
)
{
...
...
@@ -710,7 +711,7 @@ inline void wait_for_buffer(struct net_device * dev)
tmp
=
jiffies
+
HZ
;
while
(
(
((
status
=
inw
(
SEEQ_STATUS
))
&
SEEQSTAT_WINDOW_INT
)
!=
SEEQSTAT_WINDOW_INT
)
&&
time_before
(
jiffies
,
tmp
))
mb
();
cpu_relax
();
if
(
(
status
&
SEEQSTAT_WINDOW_INT
)
==
SEEQSTAT_WINDOW_INT
)
outw
(
SEEQCMD_WINDOW_INT_ACK
|
(
status
&
SEEQCMD_INT_MASK
),
SEEQ_CMD
);
...
...
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