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
7878f411
Commit
7878f411
authored
Sep 25, 2002
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Plain Diff
Merge mandrakesoft.com:/home/jgarzik/repo/linus-2.5
into mandrakesoft.com:/home/jgarzik/repo/misc-2.5
parents
2ce067b0
90922aa6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
10 deletions
+8
-10
drivers/cdrom/cdu31a.c
drivers/cdrom/cdu31a.c
+1
-2
drivers/cdrom/sonycd535.c
drivers/cdrom/sonycd535.c
+1
-2
drivers/net/sb1000.c
drivers/net/sb1000.c
+4
-4
drivers/net/sis900.c
drivers/net/sis900.c
+2
-2
No files found.
drivers/cdrom/cdu31a.c
View file @
7878f411
...
@@ -386,8 +386,7 @@ static inline void sony_sleep(void)
...
@@ -386,8 +386,7 @@ static inline void sony_sleep(void)
unsigned
long
flags
;
unsigned
long
flags
;
if
(
cdu31a_irq
<=
0
)
{
if
(
cdu31a_irq
<=
0
)
{
current
->
state
=
TASK_INTERRUPTIBLE
;
yield
();
schedule_timeout
(
0
);
}
else
{
/* Interrupt driven */
}
else
{
/* Interrupt driven */
save_flags
(
flags
);
save_flags
(
flags
);
...
...
drivers/cdrom/sonycd535.c
View file @
7878f411
...
@@ -344,8 +344,7 @@ static inline void
...
@@ -344,8 +344,7 @@ static inline void
sony_sleep
(
void
)
sony_sleep
(
void
)
{
{
if
(
sony535_irq_used
<=
0
)
{
/* poll */
if
(
sony535_irq_used
<=
0
)
{
/* poll */
current
->
state
=
TASK_INTERRUPTIBLE
;
yield
();
schedule_timeout
(
0
);
}
else
{
/* Interrupt driven */
}
else
{
/* Interrupt driven */
cli
();
cli
();
enable_interrupts
();
enable_interrupts
();
...
...
drivers/net/sb1000.c
View file @
7878f411
...
@@ -295,8 +295,8 @@ card_wait_for_busy_clear(const int ioaddr[], const char* name)
...
@@ -295,8 +295,8 @@ card_wait_for_busy_clear(const int ioaddr[], const char* name)
timeout
=
jiffies
+
TimeOutJiffies
;
timeout
=
jiffies
+
TimeOutJiffies
;
while
(
a
&
0x80
||
a
&
0x40
)
{
while
(
a
&
0x80
||
a
&
0x40
)
{
/* a little sleep */
/* a little sleep */
current
->
state
=
TASK_INTERRUPTIBLE
;
yield
()
;
schedule_timeout
(
0
);
a
=
inb
(
ioaddr
[
0
]
+
7
);
a
=
inb
(
ioaddr
[
0
]
+
7
);
if
(
jiffies
>=
timeout
)
{
if
(
jiffies
>=
timeout
)
{
printk
(
KERN_WARNING
"%s: card_wait_for_busy_clear timeout
\n
"
,
printk
(
KERN_WARNING
"%s: card_wait_for_busy_clear timeout
\n
"
,
...
@@ -319,8 +319,8 @@ card_wait_for_ready(const int ioaddr[], const char* name, unsigned char in[])
...
@@ -319,8 +319,8 @@ card_wait_for_ready(const int ioaddr[], const char* name, unsigned char in[])
timeout
=
jiffies
+
TimeOutJiffies
;
timeout
=
jiffies
+
TimeOutJiffies
;
while
(
a
&
0x80
||
!
(
a
&
0x40
))
{
while
(
a
&
0x80
||
!
(
a
&
0x40
))
{
/* a little sleep */
/* a little sleep */
current
->
state
=
TASK_INTERRUPTIBLE
;
yield
()
;
schedule_timeout
(
0
);
a
=
inb
(
ioaddr
[
1
]
+
6
);
a
=
inb
(
ioaddr
[
1
]
+
6
);
if
(
jiffies
>=
timeout
)
{
if
(
jiffies
>=
timeout
)
{
printk
(
KERN_WARNING
"%s: card_wait_for_ready timeout
\n
"
,
printk
(
KERN_WARNING
"%s: card_wait_for_ready timeout
\n
"
,
...
...
drivers/net/sis900.c
View file @
7878f411
...
@@ -573,8 +573,8 @@ static int __init sis900_mii_probe (struct net_device * net_dev)
...
@@ -573,8 +573,8 @@ static int __init sis900_mii_probe (struct net_device * net_dev)
if
(
status
&
MII_STAT_LINK
){
if
(
status
&
MII_STAT_LINK
){
while
(
poll_bit
)
{
while
(
poll_bit
)
{
current
->
state
=
TASK_INTERRUPTIBLE
;
yield
()
;
schedule_timeout
(
0
);
poll_bit
^=
(
mdio_read
(
net_dev
,
sis_priv
->
cur_phy
,
MII_STATUS
)
&
poll_bit
);
poll_bit
^=
(
mdio_read
(
net_dev
,
sis_priv
->
cur_phy
,
MII_STATUS
)
&
poll_bit
);
if
(
jiffies
>=
timeout
)
{
if
(
jiffies
>=
timeout
)
{
printk
(
KERN_WARNING
"%s: reset phy and link down now
\n
"
,
net_dev
->
name
);
printk
(
KERN_WARNING
"%s: reset phy and link down now
\n
"
,
net_dev
->
name
);
...
...
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