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
08e60e5e
Commit
08e60e5e
authored
Nov 23, 2002
by
Arnaldo Carvalho de Melo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o drivers/atm/horizon.c: test_bit & friends require long
parent
b9719d5f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
drivers/atm/horizon.c
drivers/atm/horizon.c
+3
-4
drivers/atm/horizon.h
drivers/atm/horizon.h
+1
-1
No files found.
drivers/atm/horizon.c
View file @
08e60e5e
...
...
@@ -603,8 +603,7 @@ static int make_rate (const hrz_dev * dev, u32 c, rounding r,
// note: rounding the rate down means rounding 'p' up
const
unsigned
long
br
=
test_bit
(
ultra
,
(
hrz_flags
*
)
&
dev
->
flags
)
?
BR_ULT
:
BR_HRZ
;
const
unsigned
long
br
=
test_bit
(
ultra
,
&
dev
->
flags
)
?
BR_ULT
:
BR_HRZ
;
u32
div
=
CR_MIND
;
u32
pre
;
...
...
@@ -1106,9 +1105,9 @@ static inline void rx_bus_master_complete_handler (hrz_dev * dev) {
static
inline
int
tx_hold
(
hrz_dev
*
dev
)
{
while
(
test_and_set_bit
(
tx_busy
,
&
dev
->
flags
))
{
PRINTD
(
DBG_TX
,
"sleeping at tx lock %p %u"
,
dev
,
dev
->
flags
);
PRINTD
(
DBG_TX
,
"sleeping at tx lock %p %
l
u"
,
dev
,
dev
->
flags
);
interruptible_sleep_on
(
&
dev
->
tx_queue
);
PRINTD
(
DBG_TX
,
"woken at tx lock %p %u"
,
dev
,
dev
->
flags
);
PRINTD
(
DBG_TX
,
"woken at tx lock %p %
l
u"
,
dev
,
dev
->
flags
);
if
(
signal_pending
(
current
))
return
-
1
;
}
...
...
drivers/atm/horizon.h
View file @
08e60e5e
...
...
@@ -429,7 +429,7 @@ struct hrz_dev {
#endif
u8
irq
;
u8
flags
;
long
flags
;
u8
tx_last
;
u8
tx_idle
;
...
...
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