Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
2df341ed
Commit
2df341ed
authored
Oct 24, 2009
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: Move __flush_icache_all() out of flush_pfn_alias()
Signed-off-by:
Russell King
<
rmk+kernel@arm.linux.org.uk
>
parent
7b0a1003
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
arch/arm/mm/flush.c
arch/arm/mm/flush.c
+8
-3
No files found.
arch/arm/mm/flush.c
View file @
2df341ed
...
@@ -35,7 +35,6 @@ static void flush_pfn_alias(unsigned long pfn, unsigned long vaddr)
...
@@ -35,7 +35,6 @@ static void flush_pfn_alias(unsigned long pfn, unsigned long vaddr)
:
:
:
"r"
(
to
),
"r"
(
to
+
PAGE_SIZE
-
L1_CACHE_BYTES
),
"r"
(
zero
)
:
"r"
(
to
),
"r"
(
to
+
PAGE_SIZE
-
L1_CACHE_BYTES
),
"r"
(
zero
)
:
"cc"
);
:
"cc"
);
__flush_icache_all
();
}
}
void
flush_cache_mm
(
struct
mm_struct
*
mm
)
void
flush_cache_mm
(
struct
mm_struct
*
mm
)
...
@@ -79,8 +78,10 @@ void flush_cache_page(struct vm_area_struct *vma, unsigned long user_addr, unsig
...
@@ -79,8 +78,10 @@ void flush_cache_page(struct vm_area_struct *vma, unsigned long user_addr, unsig
return
;
return
;
}
}
if
(
cache_is_vipt_aliasing
())
if
(
cache_is_vipt_aliasing
())
{
flush_pfn_alias
(
pfn
,
user_addr
);
flush_pfn_alias
(
pfn
,
user_addr
);
__flush_icache_all
();
}
}
}
void
flush_ptrace_access
(
struct
vm_area_struct
*
vma
,
struct
page
*
page
,
void
flush_ptrace_access
(
struct
vm_area_struct
*
vma
,
struct
page
*
page
,
...
@@ -94,6 +95,7 @@ void flush_ptrace_access(struct vm_area_struct *vma, struct page *page,
...
@@ -94,6 +95,7 @@ void flush_ptrace_access(struct vm_area_struct *vma, struct page *page,
if
(
cache_is_vipt_aliasing
())
{
if
(
cache_is_vipt_aliasing
())
{
flush_pfn_alias
(
page_to_pfn
(
page
),
uaddr
);
flush_pfn_alias
(
page_to_pfn
(
page
),
uaddr
);
__flush_icache_all
();
return
;
return
;
}
}
...
@@ -132,9 +134,11 @@ void __flush_dcache_page(struct address_space *mapping, struct page *page)
...
@@ -132,9 +134,11 @@ void __flush_dcache_page(struct address_space *mapping, struct page *page)
* we only need to do one flush - which would be at the relevant
* we only need to do one flush - which would be at the relevant
* userspace colour, which is congruent with page->index.
* userspace colour, which is congruent with page->index.
*/
*/
if
(
mapping
&&
cache_is_vipt_aliasing
())
if
(
mapping
&&
cache_is_vipt_aliasing
())
{
flush_pfn_alias
(
page_to_pfn
(
page
),
flush_pfn_alias
(
page_to_pfn
(
page
),
page
->
index
<<
PAGE_CACHE_SHIFT
);
page
->
index
<<
PAGE_CACHE_SHIFT
);
__flush_icache_all
();
}
}
}
static
void
__flush_dcache_aliases
(
struct
address_space
*
mapping
,
struct
page
*
page
)
static
void
__flush_dcache_aliases
(
struct
address_space
*
mapping
,
struct
page
*
page
)
...
@@ -244,6 +248,7 @@ void __flush_anon_page(struct vm_area_struct *vma, struct page *page, unsigned l
...
@@ -244,6 +248,7 @@ void __flush_anon_page(struct vm_area_struct *vma, struct page *page, unsigned l
* userspace address only.
* userspace address only.
*/
*/
flush_pfn_alias
(
pfn
,
vmaddr
);
flush_pfn_alias
(
pfn
,
vmaddr
);
__flush_icache_all
();
}
}
/*
/*
...
...
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