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
29b93c68
Commit
29b93c68
authored
May 19, 2013
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARC: [mm] Zero page optimization
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
2f9e9961
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
arch/arc/mm/tlb.c
arch/arc/mm/tlb.c
+5
-1
No files found.
arch/arc/mm/tlb.c
View file @
29b93c68
...
@@ -433,9 +433,14 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long vaddr_unaligned,
...
@@ -433,9 +433,14 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long vaddr_unaligned,
{
{
unsigned
long
vaddr
=
vaddr_unaligned
&
PAGE_MASK
;
unsigned
long
vaddr
=
vaddr_unaligned
&
PAGE_MASK
;
unsigned
long
paddr
=
pte_val
(
*
ptep
)
&
PAGE_MASK
;
unsigned
long
paddr
=
pte_val
(
*
ptep
)
&
PAGE_MASK
;
struct
page
*
page
=
pfn_to_page
(
pte_pfn
(
*
ptep
));
create_tlb
(
vma
,
vaddr
,
ptep
);
create_tlb
(
vma
,
vaddr
,
ptep
);
if
(
page
==
ZERO_PAGE
(
0
))
{
return
;
}
/*
/*
* Exec page : Independent of aliasing/page-color considerations,
* Exec page : Independent of aliasing/page-color considerations,
* since icache doesn't snoop dcache on ARC, any dirty
* since icache doesn't snoop dcache on ARC, any dirty
...
@@ -447,7 +452,6 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long vaddr_unaligned,
...
@@ -447,7 +452,6 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long vaddr_unaligned,
*/
*/
if
((
vma
->
vm_flags
&
VM_EXEC
)
||
if
((
vma
->
vm_flags
&
VM_EXEC
)
||
addr_not_cache_congruent
(
paddr
,
vaddr
))
{
addr_not_cache_congruent
(
paddr
,
vaddr
))
{
struct
page
*
page
=
pfn_to_page
(
pte_pfn
(
*
ptep
));
int
dirty
=
test_and_clear_bit
(
PG_arch_1
,
&
page
->
flags
);
int
dirty
=
test_and_clear_bit
(
PG_arch_1
,
&
page
->
flags
);
if
(
dirty
)
{
if
(
dirty
)
{
...
...
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