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
40502149
Commit
40502149
authored
Sep 22, 2002
by
Tim Schmielau
Committed by
Jeff Garzik
Sep 22, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sb1000 net driver: kill float constant, time_after_eq() jiffies cleanup
parent
6ed7f5b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/net/sb1000.c
drivers/net/sb1000.c
+4
-4
No files found.
drivers/net/sb1000.c
View file @
40502149
...
@@ -275,7 +275,7 @@ sb1000_probe(struct net_device *dev)
...
@@ -275,7 +275,7 @@ sb1000_probe(struct net_device *dev)
* SB1000 hardware routines to be used during open/configuration phases
* SB1000 hardware routines to be used during open/configuration phases
*/
*/
const
int
TimeOutJiffies
=
(
int
)(
8
.
75
*
HZ
)
;
const
int
TimeOutJiffies
=
(
875
*
HZ
)
/
100
;
static
inline
void
nicedelay
(
unsigned
long
usecs
)
static
inline
void
nicedelay
(
unsigned
long
usecs
)
{
{
...
@@ -298,7 +298,7 @@ card_wait_for_busy_clear(const int ioaddr[], const char* name)
...
@@ -298,7 +298,7 @@ card_wait_for_busy_clear(const int ioaddr[], const char* name)
current
->
state
=
TASK_INTERRUPTIBLE
;
current
->
state
=
TASK_INTERRUPTIBLE
;
schedule_timeout
(
0
);
schedule_timeout
(
0
);
a
=
inb
(
ioaddr
[
0
]
+
7
);
a
=
inb
(
ioaddr
[
0
]
+
7
);
if
(
jiffies
>=
timeout
)
{
if
(
time_after_eq
(
jiffies
,
timeout
)
)
{
printk
(
KERN_WARNING
"%s: card_wait_for_busy_clear timeout
\n
"
,
printk
(
KERN_WARNING
"%s: card_wait_for_busy_clear timeout
\n
"
,
name
);
name
);
return
-
ETIME
;
return
-
ETIME
;
...
@@ -322,7 +322,7 @@ card_wait_for_ready(const int ioaddr[], const char* name, unsigned char in[])
...
@@ -322,7 +322,7 @@ card_wait_for_ready(const int ioaddr[], const char* name, unsigned char in[])
current
->
state
=
TASK_INTERRUPTIBLE
;
current
->
state
=
TASK_INTERRUPTIBLE
;
schedule_timeout
(
0
);
schedule_timeout
(
0
);
a
=
inb
(
ioaddr
[
1
]
+
6
);
a
=
inb
(
ioaddr
[
1
]
+
6
);
if
(
jiffies
>=
timeout
)
{
if
(
time_after_eq
(
jiffies
,
timeout
)
)
{
printk
(
KERN_WARNING
"%s: card_wait_for_ready timeout
\n
"
,
printk
(
KERN_WARNING
"%s: card_wait_for_ready timeout
\n
"
,
name
);
name
);
return
-
ETIME
;
return
-
ETIME
;
...
@@ -396,7 +396,7 @@ sb1000_wait_for_ready(const int ioaddr[], const char* name)
...
@@ -396,7 +396,7 @@ sb1000_wait_for_ready(const int ioaddr[], const char* name)
timeout
=
jiffies
+
Sb1000TimeOutJiffies
;
timeout
=
jiffies
+
Sb1000TimeOutJiffies
;
while
(
inb
(
ioaddr
[
1
]
+
6
)
&
0x80
)
{
while
(
inb
(
ioaddr
[
1
]
+
6
)
&
0x80
)
{
if
(
jiffies
>=
timeout
)
{
if
(
time_after_eq
(
jiffies
,
timeout
)
)
{
printk
(
KERN_WARNING
"%s: sb1000_wait_for_ready timeout
\n
"
,
printk
(
KERN_WARNING
"%s: sb1000_wait_for_ready timeout
\n
"
,
name
);
name
);
return
-
ETIME
;
return
-
ETIME
;
...
...
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