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
45309493
Commit
45309493
authored
May 18, 2015
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARC: fold ___flush_dcache_page into __flush_dcache_page
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
1269f4d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
arch/arc/include/asm/cacheflush.h
arch/arc/include/asm/cacheflush.h
+1
-3
arch/arc/mm/cache_arc700.c
arch/arc/mm/cache_arc700.c
+6
-6
No files found.
arch/arc/include/asm/cacheflush.h
View file @
45309493
...
...
@@ -34,9 +34,7 @@ void flush_cache_all(void);
void
flush_icache_range
(
unsigned
long
start
,
unsigned
long
end
);
void
__sync_icache_dcache
(
unsigned
long
paddr
,
unsigned
long
vaddr
,
int
len
);
void
__inv_icache_page
(
unsigned
long
paddr
,
unsigned
long
vaddr
);
void
___flush_dcache_page
(
unsigned
long
paddr
,
unsigned
long
vaddr
);
#define __flush_dcache_page(p, v) \
___flush_dcache_page((unsigned long)p, (unsigned long)v)
void
__flush_dcache_page
(
unsigned
long
paddr
,
unsigned
long
vaddr
);
#define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 1
...
...
arch/arc/mm/cache_arc700.c
View file @
45309493
...
...
@@ -493,7 +493,7 @@ void flush_dcache_page(struct page *page)
}
else
if
(
page_mapped
(
page
))
{
/* kernel reading from page with U-mapping */
void
*
paddr
=
page_address
(
page
);
unsigned
long
paddr
=
(
unsigned
long
)
page_address
(
page
);
unsigned
long
vaddr
=
page
->
index
<<
PAGE_CACHE_SHIFT
;
if
(
addr_not_cache_congruent
(
paddr
,
vaddr
))
...
...
@@ -605,7 +605,7 @@ void __inv_icache_page(unsigned long paddr, unsigned long vaddr)
* wrapper to clearout kernel or userspace mappings of a page
* For kernel mappings @vaddr == @paddr
*/
void
__
_
flush_dcache_page
(
unsigned
long
paddr
,
unsigned
long
vaddr
)
void
__flush_dcache_page
(
unsigned
long
paddr
,
unsigned
long
vaddr
)
{
__dc_line_op
(
paddr
,
vaddr
&
PAGE_MASK
,
PAGE_SIZE
,
OP_FLUSH_N_INV
);
}
...
...
@@ -637,7 +637,7 @@ void flush_cache_page(struct vm_area_struct *vma, unsigned long u_vaddr,
u_vaddr
&=
PAGE_MASK
;
__
_
flush_dcache_page
(
paddr
,
u_vaddr
);
__flush_dcache_page
(
paddr
,
u_vaddr
);
if
(
vma
->
vm_flags
&
VM_EXEC
)
__inv_icache_page
(
paddr
,
u_vaddr
);
...
...
@@ -663,8 +663,8 @@ void flush_anon_page(struct vm_area_struct *vma, struct page *page,
void
copy_user_highpage
(
struct
page
*
to
,
struct
page
*
from
,
unsigned
long
u_vaddr
,
struct
vm_area_struct
*
vma
)
{
void
*
kfrom
=
page_address
(
from
);
void
*
kto
=
page_address
(
to
);
unsigned
long
kfrom
=
(
unsigned
long
)
page_address
(
from
);
unsigned
long
kto
=
(
unsigned
long
)
page_address
(
to
);
int
clean_src_k_mappings
=
0
;
/*
...
...
@@ -680,7 +680,7 @@ void copy_user_highpage(struct page *to, struct page *from,
clean_src_k_mappings
=
1
;
}
copy_page
(
kto
,
kfrom
);
copy_page
(
(
void
*
)
kto
,
(
void
*
)
kfrom
);
/*
* Mark DST page K-mapping as dirty for a later finalization by
...
...
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