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
30718727
Commit
30718727
authored
Dec 30, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://linux-dj.bkbits.net/agpgart
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
1ae71dcb
6c9ac65b
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
134 additions
and
160 deletions
+134
-160
drivers/char/agp/backend.c
drivers/char/agp/backend.c
+3
-7
drivers/char/agp/frontend.c
drivers/char/agp/frontend.c
+131
-153
No files found.
drivers/char/agp/backend.c
View file @
30718727
...
...
@@ -49,13 +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
;
}
MOD_INC_USE_COUNT
;
atomic_inc
(
&
agp_bridge
.
agp_in_use
)
;
return
0
;
}
...
...
@@ -65,7 +62,6 @@ void agp_backend_release(void)
return
;
atomic_dec
(
&
agp_bridge
.
agp_in_use
);
MOD_DEC_USE_COUNT
;
}
struct
agp_max_table
{
...
...
drivers/char/agp/frontend.c
View file @
30718727
This diff is collapsed.
Click to expand it.
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