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
91dd71e5
Commit
91dd71e5
authored
Dec 30, 2002
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AGP] Clean up atomic usage of agp_bridge.agp_in_use
parent
fcbdf76e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
drivers/char/agp/backend.c
drivers/char/agp/backend.c
+3
-5
No files found.
drivers/char/agp/backend.c
View file @
91dd71e5
...
...
@@ -49,12 +49,10 @@ int agp_backend_acquire(void)
if
(
agp_bridge
.
type
==
NOT_SUPPORTED
)
return
-
EINVAL
;
atomic_inc
(
&
agp_bridge
.
agp_in_use
);
if
(
atomic_read
(
&
agp_bridge
.
agp_in_use
)
!=
1
)
{
atomic_dec
(
&
agp_bridge
.
agp_in_use
);
if
(
atomic_read
(
&
agp_bridge
.
agp_in_use
)
!=
0
)
return
-
EBUSY
;
}
atomic_inc
(
&
agp_bridge
.
agp_in_use
);
return
0
;
}
...
...
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