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
bc3e11be
Commit
bc3e11be
authored
Nov 25, 2011
by
Cong Wang
Committed by
Cong Wang
Mar 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: remove the second argument of k[un]map_atomic()
Signed-off-by:
Cong Wang
<
amwang@redhat.com
>
parent
2480b208
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
arch/sh/mm/cache-sh4.c
arch/sh/mm/cache-sh4.c
+2
-2
arch/sh/mm/cache.c
arch/sh/mm/cache.c
+6
-6
No files found.
arch/sh/mm/cache-sh4.c
View file @
bc3e11be
...
...
@@ -244,7 +244,7 @@ static void sh4_flush_cache_page(void *args)
if
(
map_coherent
)
vaddr
=
kmap_coherent
(
page
,
address
);
else
vaddr
=
kmap_atomic
(
page
,
KM_USER0
);
vaddr
=
kmap_atomic
(
page
);
address
=
(
unsigned
long
)
vaddr
;
}
...
...
@@ -259,7 +259,7 @@ static void sh4_flush_cache_page(void *args)
if
(
map_coherent
)
kunmap_coherent
(
vaddr
);
else
kunmap_atomic
(
vaddr
,
KM_USER0
);
kunmap_atomic
(
vaddr
);
}
}
...
...
arch/sh/mm/cache.c
View file @
bc3e11be
...
...
@@ -95,7 +95,7 @@ void copy_user_highpage(struct page *to, struct page *from,
{
void
*
vfrom
,
*
vto
;
vto
=
kmap_atomic
(
to
,
KM_USER1
);
vto
=
kmap_atomic
(
to
);
if
(
boot_cpu_data
.
dcache
.
n_aliases
&&
page_mapped
(
from
)
&&
test_bit
(
PG_dcache_clean
,
&
from
->
flags
))
{
...
...
@@ -103,16 +103,16 @@ void copy_user_highpage(struct page *to, struct page *from,
copy_page
(
vto
,
vfrom
);
kunmap_coherent
(
vfrom
);
}
else
{
vfrom
=
kmap_atomic
(
from
,
KM_USER0
);
vfrom
=
kmap_atomic
(
from
);
copy_page
(
vto
,
vfrom
);
kunmap_atomic
(
vfrom
,
KM_USER0
);
kunmap_atomic
(
vfrom
);
}
if
(
pages_do_alias
((
unsigned
long
)
vto
,
vaddr
&
PAGE_MASK
)
||
(
vma
->
vm_flags
&
VM_EXEC
))
__flush_purge_region
(
vto
,
PAGE_SIZE
);
kunmap_atomic
(
vto
,
KM_USER1
);
kunmap_atomic
(
vto
);
/* Make sure this page is cleared on other CPU's too before using it */
smp_wmb
();
}
...
...
@@ -120,14 +120,14 @@ EXPORT_SYMBOL(copy_user_highpage);
void
clear_user_highpage
(
struct
page
*
page
,
unsigned
long
vaddr
)
{
void
*
kaddr
=
kmap_atomic
(
page
,
KM_USER0
);
void
*
kaddr
=
kmap_atomic
(
page
);
clear_page
(
kaddr
);
if
(
pages_do_alias
((
unsigned
long
)
kaddr
,
vaddr
&
PAGE_MASK
))
__flush_purge_region
(
kaddr
,
PAGE_SIZE
);
kunmap_atomic
(
kaddr
,
KM_USER0
);
kunmap_atomic
(
kaddr
);
}
EXPORT_SYMBOL
(
clear_user_highpage
);
...
...
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