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
28ff874f
Commit
28ff874f
authored
Mar 05, 2005
by
Paul Mundt
Committed by
David S. Miller
Mar 05, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SH]: Cache flush simplifications after flush_cache_page() arg change.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
890cb819
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
arch/sh/mm/cache-sh4.c
arch/sh/mm/cache-sh4.c
+1
-2
arch/sh64/mm/cache.c
arch/sh64/mm/cache.c
+1
-6
No files found.
arch/sh/mm/cache-sh4.c
View file @
28ff874f
...
...
@@ -357,7 +357,6 @@ void flush_cache_range(struct vm_area_struct *vma, unsigned long start,
void
flush_icache_user_range
(
struct
vm_area_struct
*
vma
,
struct
page
*
page
,
unsigned
long
addr
,
int
len
)
{
__flush_cache_page
(
vma
,
addr
,
PHYSADDR
(
page_address
(
page
))
>>
PAGE_SHIFT
);
flush_cache_page
(
vma
,
addr
,
page_to_pfn
(
page
));
}
arch/sh64/mm/cache.c
View file @
28ff874f
...
...
@@ -573,11 +573,6 @@ static void sh64_dcache_purge_phy_page(unsigned long paddr)
}
}
static
inline
void
sh64_dcache_purge_virt_page
(
struct
mm_struct
*
mm
,
unsigned
long
eaddr
,
unsigned
long
pfn
)
{
sh64_dcache_purge_phy_page
(
pfn
<<
PAGE_SHIFT
);
}
static
void
sh64_dcache_purge_user_page
(
struct
mm_struct
*
mm
,
unsigned
long
eaddr
)
{
pgd_t
*
pgd
;
...
...
@@ -895,7 +890,7 @@ void flush_cache_page(struct vm_area_struct *vma, unsigned long eaddr, unsigned
Note(1), this is called with mm->page_table_lock held.
*/
sh64_dcache_purge_
virt_page
(
vma
->
vm_mm
,
eaddr
,
pfn
);
sh64_dcache_purge_
phy_page
(
pfn
<<
PAGE_SHIFT
);
if
(
vma
->
vm_flags
&
VM_EXEC
)
{
sh64_icache_inv_user_page
(
vma
,
eaddr
);
...
...
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