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
67b9b40a
Commit
67b9b40a
authored
Mar 26, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: missed modifications for power4 SLB optimisations
parent
26e4c4ea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
include/asm-ppc64/mmu_context.h
include/asm-ppc64/mmu_context.h
+5
-12
No files found.
include/asm-ppc64/mmu_context.h
View file @
67b9b40a
...
@@ -60,8 +60,6 @@ enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk, unsigned cpu)
...
@@ -60,8 +60,6 @@ enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk, unsigned cpu)
{
{
}
}
extern
void
flush_stab
(
void
);
/*
/*
* The context number queue has underflowed.
* The context number queue has underflowed.
* Meaning: we tried to push a context number that was freed
* Meaning: we tried to push a context number that was freed
...
@@ -133,6 +131,7 @@ destroy_context(struct mm_struct *mm)
...
@@ -133,6 +131,7 @@ destroy_context(struct mm_struct *mm)
spin_unlock
(
&
mmu_context_queue
.
lock
);
spin_unlock
(
&
mmu_context_queue
.
lock
);
}
}
extern
void
flush_stab
(
struct
task_struct
*
tsk
,
struct
mm_struct
*
mm
);
/*
/*
* switch_mm is the entry point called from the architecture independent
* switch_mm is the entry point called from the architecture independent
...
@@ -142,22 +141,16 @@ static inline void
...
@@ -142,22 +141,16 @@ static inline void
switch_mm
(
struct
mm_struct
*
prev
,
struct
mm_struct
*
next
,
switch_mm
(
struct
mm_struct
*
prev
,
struct
mm_struct
*
next
,
struct
task_struct
*
tsk
,
int
cpu
)
struct
task_struct
*
tsk
,
int
cpu
)
{
{
tsk
->
thread
.
pgdir
=
next
->
pgd
;
/* cache the pgdir in the thread
flush_stab
(
tsk
,
next
);
maybe not needed any more */
set_bit
(
cpu
,
&
next
->
cpu_vm_mask
);
flush_stab
();
}
}
/*
/*
* After we have set current->mm to a new value, this activates
* After we have set current->mm to a new value, this activates
* the context for the new mm so we see the new mappings.
* the context for the new mm so we see the new mappings.
*/
*/
static
inline
void
#define activate_mm(active_mm, mm) \
activate_mm
(
struct
mm_struct
*
active_mm
,
struct
mm_struct
*
mm
)
switch_mm(active_mm, mm, current, smp_processor_id());
{
current
->
thread
.
pgdir
=
mm
->
pgd
;
flush_stab
();
}
#define VSID_RANDOMIZER 42470972311
#define VSID_RANDOMIZER 42470972311
#define VSID_MASK 0xfffffffff
#define VSID_MASK 0xfffffffff
...
...
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