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
9326d61b
Commit
9326d61b
authored
Aug 21, 2008
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "reduce tlb/cache flush times of agpgart memory allocation"
This reverts commit
466ae837
.
parent
5843d9a4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
10 deletions
+1
-10
drivers/char/agp/agp.h
drivers/char/agp/agp.h
+0
-4
drivers/char/agp/generic.c
drivers/char/agp/generic.c
+1
-3
include/asm-x86/agp.h
include/asm-x86/agp.h
+0
-3
No files found.
drivers/char/agp/agp.h
View file @
9326d61b
...
@@ -30,10 +30,6 @@
...
@@ -30,10 +30,6 @@
#define _AGP_BACKEND_PRIV_H 1
#define _AGP_BACKEND_PRIV_H 1
#include <asm/agp.h>
/* for flush_agp_cache() */
#include <asm/agp.h>
/* for flush_agp_cache() */
#ifndef map_page_into_agp_noflush
#define map_page_into_agp_noflush(page) map_page_into_agp(page)
#define map_page_into_agp_global_flush()
#endif
#define PFX "agpgart: "
#define PFX "agpgart: "
...
...
drivers/char/agp/generic.c
View file @
9326d61b
...
@@ -274,7 +274,6 @@ struct agp_memory *agp_allocate_memory(struct agp_bridge_data *bridge,
...
@@ -274,7 +274,6 @@ struct agp_memory *agp_allocate_memory(struct agp_bridge_data *bridge,
new
->
memory
[
i
]
=
virt_to_gart
(
addr
);
new
->
memory
[
i
]
=
virt_to_gart
(
addr
);
new
->
page_count
++
;
new
->
page_count
++
;
}
}
map_page_into_agp_global_flush
();
new
->
bridge
=
bridge
;
new
->
bridge
=
bridge
;
return
new
;
return
new
;
...
@@ -1187,8 +1186,7 @@ void *agp_generic_alloc_page(struct agp_bridge_data *bridge)
...
@@ -1187,8 +1186,7 @@ void *agp_generic_alloc_page(struct agp_bridge_data *bridge)
if
(
page
==
NULL
)
if
(
page
==
NULL
)
return
NULL
;
return
NULL
;
/* agp_allocate_memory will do flush */
map_page_into_agp
(
page
);
map_page_into_agp_noflush
(
page
);
get_page
(
page
);
get_page
(
page
);
atomic_inc
(
&
agp_bridge
->
current_memory_agp
);
atomic_inc
(
&
agp_bridge
->
current_memory_agp
);
...
...
include/asm-x86/agp.h
View file @
9326d61b
...
@@ -15,9 +15,6 @@
...
@@ -15,9 +15,6 @@
#define map_page_into_agp(page) set_pages_uc(page, 1)
#define map_page_into_agp(page) set_pages_uc(page, 1)
#define unmap_page_from_agp(page) set_pages_wb(page, 1)
#define unmap_page_from_agp(page) set_pages_wb(page, 1)
#define map_page_into_agp_noflush(page) set_pages_uc_noflush(page, 1)
#define map_page_into_agp_global_flush() set_memory_flush_all()
/*
/*
* Could use CLFLUSH here if the cpu supports it. But then it would
* Could use CLFLUSH here if the cpu supports it. But then it would
* need to be called for each cacheline of the whole page so it may
* need to be called for each cacheline of the whole page so it may
...
...
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