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
f1f7ea35
Commit
f1f7ea35
authored
Sep 07, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Optimise __flush_dcache_page calls.
parent
10e15af6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
arch/arm/mm/flush.c
arch/arm/mm/flush.c
+4
-4
No files found.
arch/arm/mm/flush.c
View file @
f1f7ea35
...
...
@@ -13,13 +13,11 @@
#include <asm/cacheflush.h>
static
void
__flush_dcache_page
(
struct
page
*
page
)
static
void
__flush_dcache_page
(
struct
address_space
*
mapping
,
struct
page
*
page
)
{
struct
address_space
*
mapping
=
page_mapping
(
page
);
struct
mm_struct
*
mm
=
current
->
active_mm
;
struct
vm_area_struct
*
mpnt
;
struct
prio_tree_iter
iter
;
unsigned
long
offset
;
pgoff_t
pgoff
;
__cpuc_flush_dcache_page
(
page_address
(
page
));
...
...
@@ -35,6 +33,8 @@ static void __flush_dcache_page(struct page *page)
flush_dcache_mmap_lock
(
mapping
);
vma_prio_tree_foreach
(
mpnt
,
&
iter
,
&
mapping
->
i_mmap
,
pgoff
,
pgoff
)
{
unsigned
long
offset
;
/*
* If this VMA is not in our MM, we can ignore it.
*/
...
...
@@ -55,6 +55,6 @@ void flush_dcache_page(struct page *page)
if
(
mapping
&&
!
mapping_mapped
(
mapping
))
set_bit
(
PG_dcache_dirty
,
&
page
->
flags
);
else
__flush_dcache_page
(
page
);
__flush_dcache_page
(
mapping
,
page
);
}
EXPORT_SYMBOL
(
flush_dcache_page
);
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