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
3a22ee49
Commit
3a22ee49
authored
Sep 13, 2005
by
Tony Lindgren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: OMAP: Sync with mainline
Sync with mainline
parent
abc9491d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
52 deletions
+0
-52
arch/arm/mm/flush.c
arch/arm/mm/flush.c
+0
-52
No files found.
arch/arm/mm/flush.c
View file @
3a22ee49
...
...
@@ -10,7 +10,6 @@
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/pagemap.h>
#include <linux/shm.h>
#include <asm/cacheflush.h>
#include <asm/system.h>
...
...
@@ -170,54 +169,3 @@ void flush_dcache_page(struct page *page)
}
}
EXPORT_SYMBOL
(
flush_dcache_page
);
void
flush_cache_mm
(
struct
mm_struct
*
mm
)
{
if
(
cache_is_vivt
())
{
if
(
cpu_isset
(
smp_processor_id
(),
mm
->
cpu_vm_mask
))
__cpuc_flush_user_all
();
return
;
}
if
(
cache_is_vipt_aliasing
())
{
asm
(
"mcr p15, 0, %0, c7, c14, 0
\n
"
" mcr p15, 0, %0, c7, c5, 0
\n
"
" mcr p15, 0, %0, c7, c10, 4"
:
:
"r"
(
0
)
:
"cc"
);
}
}
void
flush_cache_range
(
struct
vm_area_struct
*
vma
,
unsigned
long
start
,
unsigned
long
end
)
{
if
(
cache_is_vivt
())
{
if
(
cpu_isset
(
smp_processor_id
(),
vma
->
vm_mm
->
cpu_vm_mask
))
__cpuc_flush_user_range
(
start
&
PAGE_MASK
,
PAGE_ALIGN
(
end
),
vma
->
vm_flags
);
return
;
}
if
(
cache_is_vipt_aliasing
())
{
asm
(
"mcr p15, 0, %0, c7, c14, 0
\n
"
" mcr p15, 0, %0, c7, c5, 0
\n
"
" mcr p15, 0, %0, c7, c10, 4"
:
:
"r"
(
0
)
:
"cc"
);
}
}
void
flush_cache_page
(
struct
vm_area_struct
*
vma
,
unsigned
long
user_addr
,
unsigned
long
pfn
)
{
if
(
cache_is_vivt
())
{
if
(
cpu_isset
(
smp_processor_id
(),
vma
->
vm_mm
->
cpu_vm_mask
))
{
unsigned
long
addr
=
user_addr
&
PAGE_MASK
;
__cpuc_flush_user_range
(
addr
,
addr
+
PAGE_SIZE
,
vma
->
vm_flags
);
}
return
;
}
if
(
cache_is_vipt_aliasing
())
flush_pfn_alias
(
pfn
,
user_addr
);
}
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