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
88c2a765
Commit
88c2a765
authored
May 14, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: Take page_table_lock in flush_tlb_mm
parent
c7cbbd77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
arch/ppc64/mm/init.c
arch/ppc64/mm/init.c
+4
-0
No files found.
arch/ppc64/mm/init.c
View file @
88c2a765
...
@@ -247,6 +247,7 @@ static void map_io_page(unsigned long ea, unsigned long pa, int flags)
...
@@ -247,6 +247,7 @@ static void map_io_page(unsigned long ea, unsigned long pa, int flags)
void
void
flush_tlb_mm
(
struct
mm_struct
*
mm
)
flush_tlb_mm
(
struct
mm_struct
*
mm
)
{
{
spin_lock
(
&
mm
->
page_table_lock
);
if
(
mm
->
map_count
)
{
if
(
mm
->
map_count
)
{
struct
vm_area_struct
*
mp
;
struct
vm_area_struct
*
mp
;
for
(
mp
=
mm
->
mmap
;
mp
!=
NULL
;
mp
=
mp
->
vm_next
)
for
(
mp
=
mm
->
mmap
;
mp
!=
NULL
;
mp
=
mp
->
vm_next
)
...
@@ -261,6 +262,7 @@ flush_tlb_mm(struct mm_struct *mm)
...
@@ -261,6 +262,7 @@ flush_tlb_mm(struct mm_struct *mm)
/* XXX are there races with checking cpu_vm_mask? - Anton */
/* XXX are there races with checking cpu_vm_mask? - Anton */
mm
->
cpu_vm_mask
=
0
;
mm
->
cpu_vm_mask
=
0
;
spin_unlock
(
&
mm
->
page_table_lock
);
}
}
/*
/*
...
@@ -666,6 +668,8 @@ int __hash_page(unsigned long ea, unsigned long access, unsigned long vsid,
...
@@ -666,6 +668,8 @@ int __hash_page(unsigned long ea, unsigned long access, unsigned long vsid,
* fault has been handled by updating a PTE in the linux page tables.
* fault has been handled by updating a PTE in the linux page tables.
* We use it to preload an HPTE into the hash table corresponding to
* We use it to preload an HPTE into the hash table corresponding to
* the updated linux PTE.
* the updated linux PTE.
*
* This must always be called with the mm->page_table_lock held
*/
*/
void
update_mmu_cache
(
struct
vm_area_struct
*
vma
,
unsigned
long
ea
,
void
update_mmu_cache
(
struct
vm_area_struct
*
vma
,
unsigned
long
ea
,
pte_t
pte
)
pte_t
pte
)
...
...
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